-
Notifications
You must be signed in to change notification settings - Fork 8
feat: Added corner, font and icon customization support! #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 1 commit
10d11df
23cf7be
8f89651
7e10503
75e8dde
e61a626
7540010
e6dea56
f6e7c12
a6c19d2
5e674f6
d3a9672
cffa283
192fb25
86869a7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,6 +4,17 @@ | |
|
|
||
| @theme static { | ||
| --font-sans: 'Public Sans', sans-serif; | ||
| --font-serif: 'Georgia', Cambria, 'Times New Roman', Times, serif; | ||
| --font-mono: 'SFMono-Regular', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; | ||
| --font-weight-thin: 100; | ||
| --font-weight-extralight: 200; | ||
| --font-weight-light: 300; | ||
| --font-weight-normal: 400; | ||
| --font-weight-medium: 500; | ||
| --font-weight-semibold: 600; | ||
| --font-weight-bold: 700; | ||
| --font-weight-extrabold: 800; | ||
| --font-weight-black: 900; | ||
|
|
||
| --color-green-50: #effdf5; | ||
| --color-green-100: #d9fbe8; | ||
|
|
@@ -16,4 +27,27 @@ | |
| --color-green-800: #016538; | ||
| --color-green-900: #0a5331; | ||
| --color-green-950: #052e16; | ||
| } | ||
| } | ||
|
|
||
| :root { | ||
| font-family: var(--font-sans, 'Public Sans', sans-serif); | ||
| font-weight: var(--font-weight-normal, 400); | ||
| } | ||
|
|
||
| code, | ||
| pre, | ||
| kbd, | ||
| samp { | ||
| font-family: var(--font-mono, 'SFMono-Regular', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace); | ||
|
||
| } | ||
|
|
||
| .font-thin { font-weight: var(--font-weight-thin, 100); } | ||
| .font-extralight { font-weight: var(--font-weight-extralight, 200); } | ||
| .font-light { font-weight: var(--font-weight-light, 300); } | ||
| .font-normal { font-weight: var(--font-weight-normal, 400); } | ||
| .font-medium { font-weight: var(--font-weight-medium, 500); } | ||
| .font-semibold { font-weight: var(--font-weight-semibold, 600); } | ||
| .font-bold { font-weight: var(--font-weight-bold, 700); } | ||
| .font-extrabold { font-weight: var(--font-weight-extrabold, 800); } | ||
| .font-black { font-weight: var(--font-weight-black, 900); } | ||
| .font-heavy { font-weight: var(--font-weight-black, 900); } | ||
|
ebanDev marked this conversation as resolved.
Outdated
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The nullish coalescing operator '||=' creates the object if it doesn't exist. However, the subsequent assignment creates a new object reference every time, which could break object equality checks elsewhere. Consider checking if the icons have actually changed before reassigning.