Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,9 @@ way to subset variable woff2 fonts with ligatures.

In other words, either have python as a development dependency or
serve a 3.5MB icons font of which 99.5% is completely unused.

To generate the icons use the following command:

```shell
npm run minify-icons
```
7 changes: 2 additions & 5 deletions src/lib/style/form/_button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ button {

font-family: inherit;
font-weight: 600;
border-radius: 32px;
transition: all 250ms ease;

@media not (forced-colors: active) {
color: currentcolor;
Expand All @@ -36,10 +38,6 @@ button {
color: ButtonText;
}

border-radius: 32px;

transition: all 250ms ease;

&.icon {
display: inline-flex;

Expand All @@ -48,7 +46,6 @@ button {
padding-inline: 0;

font-size: 24px;

border-radius: 50%;

@media (forced-colors: active) {
Expand Down
14 changes: 7 additions & 7 deletions src/lib/style/theme.scss
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
@import "./reset";
@use "reset";

@import "./form/button";
@import "./form/toggle";
@import "./form/checkbox";
@use "form/button";
@use "form/toggle";
@use "form/checkbox";

@import "./kbd";
@import "./print";
@use "kbd";
@use "print";

@import "./elements/h1";
@use "elements/h1";

body {
overflow: hidden;
Expand Down
7 changes: 7 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ export default defineConfig({
define: {
global: "window",
},
css: {
preprocessorOptions: {
scss: {
api: "modern-compiler",
},
},
},
envPrefix: ["TAURI_", "VITE_"],
plugins: [
ViteYaml(),
Expand Down
Loading