@eodparks/tokens 0.0.0-stage → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +74 -2
- package/base.css +25 -0
- package/fonts/OFL.txt +93 -0
- package/fonts/README.md +13 -0
- package/fonts/manrope-variable.woff2 +0 -0
- package/fonts.css +7 -0
- package/package.json +29 -3
- package/primitives.css +95 -0
- package/semantic.css +158 -0
- package/theme.css +86 -0
- package/tokens.json +1130 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 EOD Parks
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,75 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @eodparks/tokens
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The EOD theme for Tailwind v4: CRM's colours in light and dark, Manrope, radii and control sizes.
|
|
4
|
+
CSS only, no JavaScript.
|
|
5
|
+
|
|
6
|
+
```css
|
|
7
|
+
@import "tailwindcss";
|
|
8
|
+
@import "@eodparks/tokens/theme.css";
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
An app that installs `@eodparks/ui` imports `@eodparks/ui/styles.css` instead and never this
|
|
12
|
+
package directly.
|
|
13
|
+
|
|
14
|
+
## Tiers
|
|
15
|
+
|
|
16
|
+
- **Primitive** (`primitives.css`): raw colour ramps such as `--blue-500`. Only `semantic.css`
|
|
17
|
+
may reference them. This release ships the ramps but `semantic.css` still holds literal
|
|
18
|
+
values; `e2e/tokens.spec.ts` proves every semantic colour has a primitive of the same value,
|
|
19
|
+
so the follow-up that points semantic tokens at primitives cannot move a pixel.
|
|
20
|
+
- **Semantic** (`semantic.css`): what components and apps use, through Tailwind utilities
|
|
21
|
+
(`bg-primary`, `text-muted-foreground`). `:root` is light, `.dark` is dark and
|
|
22
|
+
`[data-density="compact"]` shrinks controls and table rows.
|
|
23
|
+
- **Component**: local to one component, and added only when no semantic token fits.
|
|
24
|
+
|
|
25
|
+
## Naming
|
|
26
|
+
|
|
27
|
+
A semantic token is named for its job, never its colour. A surface and the text on it come as
|
|
28
|
+
a pair: `--card` and `--card-foreground`. A feedback family has five members: `--success`,
|
|
29
|
+
`--success-foreground`, `--success-subtle`, `--success-subtle-foreground` and
|
|
30
|
+
`--success-border`. The names are CRM's and do not change, so old and new components render
|
|
31
|
+
the same theme side by side.
|
|
32
|
+
|
|
33
|
+
A primitive is named `--<ramp>-<step>`, where the step is 1000 minus ten times the lightness,
|
|
34
|
+
so a higher step is darker.
|
|
35
|
+
|
|
36
|
+
## Use
|
|
37
|
+
|
|
38
|
+
| Tokens | Use for | Not for |
|
|
39
|
+
| ------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ---------------------------------- |
|
|
40
|
+
| `background`, `foreground` | the page and its text | raised surfaces |
|
|
41
|
+
| `card`, `popover` and their `-foreground` | raised surfaces and open popups | the page itself |
|
|
42
|
+
| `primary` family | the main action, links, selection and the focus ring | status |
|
|
43
|
+
| `secondary`, `muted`, `accent` and their `-foreground` | quiet fills, hover and highlighted rows; `muted-foreground` for secondary text | text that must stand out |
|
|
44
|
+
| `destructive`, `success`, `warning`, `info` families | feedback: errors and deletion, confirmation, caution, neutral notice | decoration |
|
|
45
|
+
| `highlight` family | a marked or featured item | feedback |
|
|
46
|
+
| `border`, `input`, `ring` | separators, control edges, focus ring | text |
|
|
47
|
+
| `overlay`, `overlay-foreground` | the scrim behind a modal and content drawn on it | surfaces |
|
|
48
|
+
| `chart-1` to `chart-5` | CRM's existing chart ramp | categories that must be told apart |
|
|
49
|
+
| `chart-cat-1` to `chart-cat-8` | categorical chart series | text |
|
|
50
|
+
| `sidebar` family | the app shell's side navigation | page content |
|
|
51
|
+
| `radius`, `control-h*`, `table-cell-py`, `focus-ring-*`, `tracking-body` | radii, control heights, table density, focus ring size, body letter spacing | one-off sizes |
|
|
52
|
+
|
|
53
|
+
`theme.css` also names four radii so components stop choosing their own: `rounded-control`,
|
|
54
|
+
`rounded-item`, `rounded-popup` and `rounded-surface`.
|
|
55
|
+
|
|
56
|
+
`tokens.json` lists every token with its light and dark value. The gallery `/tokens` page shows
|
|
57
|
+
them with their contrast ratios.
|
|
58
|
+
|
|
59
|
+
## Adding a token
|
|
60
|
+
|
|
61
|
+
A value is a token when more than one component needs it or when it differs between light and
|
|
62
|
+
dark. Anything else stays a utility class in the component. A new semantic token needs a
|
|
63
|
+
changeset that states its purpose, values for both modes, a pair in
|
|
64
|
+
`e2e/fixtures/contrast-pairs.ts` when it carries text or an edge, and a review by the owner of
|
|
65
|
+
the theme. Apps do not define colour, radius or font variables of their own.
|
|
66
|
+
|
|
67
|
+
## Versioning
|
|
68
|
+
|
|
69
|
+
`@eodparks/tokens` and `@eodparks/ui` share one version, managed by Changesets. A changed value
|
|
70
|
+
is an intended visual change: it bumps the minor version while the packages are below 1.0, and
|
|
71
|
+
its changeset says what changes on screen and links before and after screenshots.
|
|
72
|
+
|
|
73
|
+
## Font
|
|
74
|
+
|
|
75
|
+
Manrope is self-hosted; see `fonts/README.md` for its source and licence.
|
package/base.css
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
@layer base {
|
|
2
|
+
/* Tailwind v4 defaults borders to currentColor; CRM renders --border. */
|
|
3
|
+
*,
|
|
4
|
+
::after,
|
|
5
|
+
::before,
|
|
6
|
+
::backdrop,
|
|
7
|
+
::file-selector-button {
|
|
8
|
+
border-color: var(--border);
|
|
9
|
+
}
|
|
10
|
+
body {
|
|
11
|
+
background-color: var(--background);
|
|
12
|
+
color: var(--foreground);
|
|
13
|
+
font-family: var(--font-sans);
|
|
14
|
+
letter-spacing: var(--tracking-body);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
@media (prefers-reduced-motion: reduce) {
|
|
18
|
+
*,
|
|
19
|
+
::after,
|
|
20
|
+
::before {
|
|
21
|
+
animation-duration: 0.01ms !important;
|
|
22
|
+
animation-iteration-count: 1 !important;
|
|
23
|
+
transition-duration: 0.01ms !important;
|
|
24
|
+
}
|
|
25
|
+
}
|
package/fonts/OFL.txt
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright 2018 The Manrope Project Authors (https://github.com/googlefonts/manrope)
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
http://scripts.sil.org/OFL
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
package/fonts/README.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Manrope
|
|
2
|
+
|
|
3
|
+
`manrope-variable.woff2` is `Manrope[wght].ttf` (weight axis 200 to 800, all subsets) from
|
|
4
|
+
`google/fonts` at `ofl/manrope/`, upstream `googlefonts/manrope` commit
|
|
5
|
+
`6f81ebecdf65e4463b798cc07b16a4f8d5216917`, compressed to WOFF2 with
|
|
6
|
+
`fonttools ttLib.woff2 compress`. Nothing was subset or renamed.
|
|
7
|
+
|
|
8
|
+
| File | SHA-256 |
|
|
9
|
+
|---|---|
|
|
10
|
+
| source `Manrope[wght].ttf` | `3ae11c49db0455a3cc33e37d380f20fdb8c7f8b41dc07625c177e3d87a9d6ae6` |
|
|
11
|
+
| `manrope-variable.woff2` | `30b83738add8c9edd9e3450b98036a9a8fb5668d0cbd4eb0ce5fe6761197f21f` |
|
|
12
|
+
|
|
13
|
+
Licence: SIL Open Font License 1.1, in `OFL.txt` next to the font.
|
|
Binary file
|
package/fonts.css
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,32 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eodparks/tokens",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "EOD design tokens: Tailwind v4 theme, semantic colours and the Manrope font.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/eodparks/ui.git",
|
|
9
|
+
"directory": "packages/tokens"
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"*.css",
|
|
13
|
+
"fonts",
|
|
14
|
+
"tokens.json"
|
|
15
|
+
],
|
|
16
|
+
"type": "module",
|
|
17
|
+
"sideEffects": [
|
|
18
|
+
"*.css"
|
|
19
|
+
],
|
|
20
|
+
"exports": {
|
|
21
|
+
"./theme.css": "./theme.css",
|
|
22
|
+
"./primitives.css": "./primitives.css",
|
|
23
|
+
"./semantic.css": "./semantic.css",
|
|
24
|
+
"./base.css": "./base.css",
|
|
25
|
+
"./fonts.css": "./fonts.css",
|
|
26
|
+
"./tokens.json": "./tokens.json",
|
|
27
|
+
"./package.json": "./package.json"
|
|
28
|
+
},
|
|
29
|
+
"publishConfig": {
|
|
30
|
+
"access": "public"
|
|
31
|
+
}
|
|
6
32
|
}
|
package/primitives.css
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Tier 1: raw colour ramps. Only semantic.css may reference these.
|
|
3
|
+
* Step = 1000 - 10 x lightness, so a higher step is darker. A trailing letter
|
|
4
|
+
* separates two colours with the same lightness (a is the more saturated).
|
|
5
|
+
*/
|
|
6
|
+
:root {
|
|
7
|
+
--neutral-0: hsl(0 0% 100%);
|
|
8
|
+
--neutral-8: hsl(0 0% 99.2157%);
|
|
9
|
+
--neutral-12: hsl(0 0% 98.8235%);
|
|
10
|
+
--neutral-39: hsl(0 0% 96.0784%);
|
|
11
|
+
--neutral-59: hsl(0 0% 94.1176%);
|
|
12
|
+
--neutral-373: hsl(0 0% 62.7451%);
|
|
13
|
+
--neutral-430: hsl(0 0% 57%);
|
|
14
|
+
--neutral-555: hsl(222.8571 6.422% 44.5%);
|
|
15
|
+
--neutral-580: hsl(222.8571 6.422% 42%);
|
|
16
|
+
--neutral-595: hsl(222.8571 6.422% 40.5%);
|
|
17
|
+
--neutral-678: hsl(0 0% 32.1569%);
|
|
18
|
+
--neutral-818: hsl(226.6667 9.6774% 18.2353%);
|
|
19
|
+
--neutral-857: hsl(228 6.8493% 14.3137%);
|
|
20
|
+
--neutral-890: hsl(225 7.1429% 10.9804%);
|
|
21
|
+
--neutral-910: hsl(240 4.3478% 9.0196%);
|
|
22
|
+
--neutral-969: hsl(0 0% 3.1373%);
|
|
23
|
+
--neutral-1000: hsl(0 0% 0%);
|
|
24
|
+
--slate-27: hsl(210 42.8571% 97.2549%);
|
|
25
|
+
--slate-40: hsl(210 40% 96%);
|
|
26
|
+
--slate-57: hsl(214.2857 24.1379% 94.3137%);
|
|
27
|
+
--slate-60: hsl(210 40% 94%);
|
|
28
|
+
--slate-350: hsl(215 20% 65%);
|
|
29
|
+
--slate-375: hsl(240 17.0732% 62.5%);
|
|
30
|
+
--slate-420: hsl(214 32% 58%);
|
|
31
|
+
--slate-530: hsl(215 16% 47%);
|
|
32
|
+
--slate-770: hsl(212 39% 23%);
|
|
33
|
+
--slate-825: hsl(217.2414 32.5843% 17.451%);
|
|
34
|
+
--blue-40: hsl(214 100% 96%);
|
|
35
|
+
--blue-130: hsl(213 97% 87%);
|
|
36
|
+
--blue-240: hsl(213 94% 76%);
|
|
37
|
+
--blue-263: hsl(208.209 100% 73.7255%);
|
|
38
|
+
--blue-320: hsl(213 94% 68%);
|
|
39
|
+
--blue-347: hsl(217.5484 87.5706% 65.2941%);
|
|
40
|
+
--blue-410: hsl(212 95% 59%);
|
|
41
|
+
--blue-420: hsl(213 97% 58%);
|
|
42
|
+
--blue-470: hsl(221 83% 53%);
|
|
43
|
+
--blue-485: hsl(217 50% 51.5%);
|
|
44
|
+
--blue-500: hsl(221 83% 50%);
|
|
45
|
+
--blue-590: hsl(216 92% 41%);
|
|
46
|
+
--blue-650: hsl(224 76% 35%);
|
|
47
|
+
--blue-680: hsl(210 98% 32%);
|
|
48
|
+
--blue-810: hsl(217 50% 19%);
|
|
49
|
+
--blue-890: hsl(222 47% 11%);
|
|
50
|
+
--cyan-470: hsl(187 86% 53%);
|
|
51
|
+
--cyan-670: hsl(189 94% 33%);
|
|
52
|
+
--green-50: hsl(138 76% 95%);
|
|
53
|
+
--green-150: hsl(141 79% 85%);
|
|
54
|
+
--green-350: hsl(142 70% 65%);
|
|
55
|
+
--green-420a: hsl(141.8919 69.1589% 58.0392%);
|
|
56
|
+
--green-420b: hsl(142 69% 58%);
|
|
57
|
+
--green-645a: hsl(141 79% 35.5%);
|
|
58
|
+
--green-645b: hsl(143 50% 35.5%);
|
|
59
|
+
--green-650: hsl(142 71% 35%);
|
|
60
|
+
--green-740: hsl(142 76% 26%);
|
|
61
|
+
--green-750: hsl(140 61% 25%);
|
|
62
|
+
--green-860: hsl(145 45% 14%);
|
|
63
|
+
--amber-40: hsl(48 100% 96%);
|
|
64
|
+
--amber-230: hsl(48 97% 77%);
|
|
65
|
+
--amber-360: hsl(43 96% 64%);
|
|
66
|
+
--amber-440: hsl(43 96% 56%);
|
|
67
|
+
--amber-560: hsl(32 95% 44%);
|
|
68
|
+
--amber-605: hsl(32 65% 39.5%);
|
|
69
|
+
--amber-655: hsl(48 97% 34.5%);
|
|
70
|
+
--amber-700: hsl(32 95% 30%);
|
|
71
|
+
--amber-740: hsl(28 73% 26%);
|
|
72
|
+
--amber-840: hsl(28 50% 16%);
|
|
73
|
+
--red-30: hsl(0 86% 97%);
|
|
74
|
+
--red-110: hsl(0 96% 89%);
|
|
75
|
+
--red-182: hsl(0 93.5484% 81.7647%);
|
|
76
|
+
--red-290: hsl(0 91% 71%);
|
|
77
|
+
--red-292: hsl(0 90.604% 70.7843%);
|
|
78
|
+
--red-360: hsl(0 96% 64%);
|
|
79
|
+
--red-490a: hsl(0 72% 51%);
|
|
80
|
+
--red-490b: hsl(0 50% 51%);
|
|
81
|
+
--red-550: hsl(0 72% 45%);
|
|
82
|
+
--red-650: hsl(0 74% 35%);
|
|
83
|
+
--red-830: hsl(0 45% 17%);
|
|
84
|
+
--pink-300: hsl(330 86% 70%);
|
|
85
|
+
--pink-500: hsl(330 81% 50%);
|
|
86
|
+
--purple-20: hsl(270 100% 98%);
|
|
87
|
+
--purple-80: hsl(269 100% 92%);
|
|
88
|
+
--purple-250: hsl(270 95% 75%);
|
|
89
|
+
--purple-295: hsl(269 100% 70.5%);
|
|
90
|
+
--purple-440: hsl(271 81% 56%);
|
|
91
|
+
--purple-450: hsl(271 50% 55%);
|
|
92
|
+
--purple-500: hsl(271 81% 50%);
|
|
93
|
+
--purple-610: hsl(273 67% 39%);
|
|
94
|
+
--purple-820: hsl(270 40% 18%);
|
|
95
|
+
}
|
package/semantic.css
ADDED
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
color-scheme: light;
|
|
3
|
+
--background: hsl(0 0% 99.2157%);
|
|
4
|
+
--foreground: hsl(0 0% 0%);
|
|
5
|
+
--card: hsl(0 0% 99.2157%);
|
|
6
|
+
--card-foreground: hsl(0 0% 0%);
|
|
7
|
+
--popover: hsl(0 0% 98.8235%);
|
|
8
|
+
--popover-foreground: hsl(0 0% 0%);
|
|
9
|
+
--primary: hsl(221 83% 50%);
|
|
10
|
+
--primary-foreground: hsl(0 0% 100%);
|
|
11
|
+
--primary-subtle: hsl(214 100% 96%);
|
|
12
|
+
--primary-subtle-foreground: hsl(224 76% 35%);
|
|
13
|
+
--primary-border: hsl(213 97% 58%);
|
|
14
|
+
--secondary: hsl(214.2857 24.1379% 94.3137%);
|
|
15
|
+
--secondary-foreground: hsl(0 0% 3.1373%);
|
|
16
|
+
--muted: hsl(0 0% 96.0784%);
|
|
17
|
+
--muted-foreground: hsl(0 0% 32.1569%);
|
|
18
|
+
--accent: hsl(210 40% 94%);
|
|
19
|
+
--accent-foreground: hsl(221 83% 53%);
|
|
20
|
+
--destructive: hsl(0 72% 45%);
|
|
21
|
+
--destructive-foreground: hsl(0 0% 100%);
|
|
22
|
+
--destructive-subtle: hsl(0 86% 97%);
|
|
23
|
+
--destructive-subtle-foreground: hsl(0 74% 35%);
|
|
24
|
+
--destructive-border: hsl(0 96% 64%);
|
|
25
|
+
--success: hsl(142 76% 26%);
|
|
26
|
+
--success-foreground: hsl(0 0% 100%);
|
|
27
|
+
--success-subtle: hsl(138 76% 95%);
|
|
28
|
+
--success-subtle-foreground: hsl(140 61% 25%);
|
|
29
|
+
--success-border: hsl(141 79% 35.5%);
|
|
30
|
+
--warning: hsl(32 95% 30%);
|
|
31
|
+
--warning-foreground: hsl(0 0% 100%);
|
|
32
|
+
--warning-subtle: hsl(48 100% 96%);
|
|
33
|
+
--warning-subtle-foreground: hsl(28 73% 26%);
|
|
34
|
+
--warning-border: hsl(48 97% 34.5%);
|
|
35
|
+
--highlight: hsl(271 81% 50%);
|
|
36
|
+
--highlight-foreground: hsl(0 0% 100%);
|
|
37
|
+
--highlight-subtle: hsl(270 100% 98%);
|
|
38
|
+
--highlight-subtle-foreground: hsl(273 67% 39%);
|
|
39
|
+
--highlight-border: hsl(269 100% 70.5%);
|
|
40
|
+
--border: hsl(240 17.0732% 62.5%);
|
|
41
|
+
--input: hsl(0 0% 57%);
|
|
42
|
+
--ring: var(--primary);
|
|
43
|
+
--overlay: hsl(0 0% 0%);
|
|
44
|
+
--overlay-foreground: hsl(0 0% 100%);
|
|
45
|
+
--chart-1: hsl(221 83% 50%);
|
|
46
|
+
--chart-2: hsl(212 95% 59%);
|
|
47
|
+
--chart-3: hsl(216 92% 41%);
|
|
48
|
+
--chart-4: hsl(210 98% 32%);
|
|
49
|
+
--chart-5: hsl(212 39% 23%);
|
|
50
|
+
--sidebar: hsl(210 42.8571% 97.2549%);
|
|
51
|
+
--sidebar-foreground: hsl(0 0% 0%);
|
|
52
|
+
--sidebar-primary: hsl(221 83% 53%);
|
|
53
|
+
--sidebar-primary-foreground: hsl(0 0% 100%);
|
|
54
|
+
--sidebar-accent: hsl(210 40% 96%);
|
|
55
|
+
--sidebar-accent-foreground: hsl(221 83% 53%);
|
|
56
|
+
--sidebar-border: hsl(214 32% 58%);
|
|
57
|
+
--sidebar-ring: hsl(221 83% 53%);
|
|
58
|
+
--info: var(--primary);
|
|
59
|
+
--info-foreground: var(--primary-foreground);
|
|
60
|
+
--info-subtle: var(--primary-subtle);
|
|
61
|
+
--info-subtle-foreground: var(--primary-subtle-foreground);
|
|
62
|
+
--info-border: var(--primary-border);
|
|
63
|
+
--chart-cat-1: hsl(221 83% 53%);
|
|
64
|
+
--chart-cat-2: hsl(142 71% 35%);
|
|
65
|
+
--chart-cat-3: hsl(32 95% 44%);
|
|
66
|
+
--chart-cat-4: hsl(271 81% 56%);
|
|
67
|
+
--chart-cat-5: hsl(0 72% 51%);
|
|
68
|
+
--chart-cat-6: hsl(189 94% 33%);
|
|
69
|
+
--chart-cat-7: hsl(330 81% 50%);
|
|
70
|
+
--chart-cat-8: hsl(215 16% 47%);
|
|
71
|
+
--radius: 1.4rem;
|
|
72
|
+
--tracking-body: -0.025em;
|
|
73
|
+
--control-h-sm: 2.25rem;
|
|
74
|
+
--control-h: 2.5rem;
|
|
75
|
+
--control-h-lg: 2.75rem;
|
|
76
|
+
--table-cell-py: 1rem;
|
|
77
|
+
--focus-ring-width: 2px;
|
|
78
|
+
--focus-ring-offset: 2px;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.dark {
|
|
82
|
+
color-scheme: dark;
|
|
83
|
+
--background: hsl(225 7.1429% 10.9804%);
|
|
84
|
+
--foreground: hsl(0 0% 94.1176%);
|
|
85
|
+
--card: hsl(228 6.8493% 14.3137%);
|
|
86
|
+
--card-foreground: hsl(0 0% 94.1176%);
|
|
87
|
+
--popover: hsl(228 6.8493% 14.3137%);
|
|
88
|
+
--popover-foreground: hsl(0 0% 94.1176%);
|
|
89
|
+
--primary: hsl(213 94% 76%);
|
|
90
|
+
--primary-foreground: hsl(222 47% 11%);
|
|
91
|
+
--primary-subtle: hsl(217 50% 19%);
|
|
92
|
+
--primary-subtle-foreground: hsl(213 97% 87%);
|
|
93
|
+
--primary-border: hsl(217 50% 51.5%);
|
|
94
|
+
--secondary: hsl(226.6667 9.6774% 18.2353%);
|
|
95
|
+
--secondary-foreground: hsl(0 0% 94.1176%);
|
|
96
|
+
--muted: hsl(226.6667 9.6774% 18.2353%);
|
|
97
|
+
--muted-foreground: hsl(0 0% 62.7451%);
|
|
98
|
+
--accent: hsl(217.2414 32.5843% 17.451%);
|
|
99
|
+
--accent-foreground: hsl(208.209 100% 73.7255%);
|
|
100
|
+
--destructive: hsl(0 90.604% 70.7843%);
|
|
101
|
+
--destructive-foreground: hsl(222 47% 11%);
|
|
102
|
+
--destructive-subtle: hsl(0 45% 17%);
|
|
103
|
+
--destructive-subtle-foreground: hsl(0 96% 89%);
|
|
104
|
+
--destructive-border: hsl(0 50% 51%);
|
|
105
|
+
--success: hsl(142 70% 65%);
|
|
106
|
+
--success-foreground: hsl(222 47% 11%);
|
|
107
|
+
--success-subtle: hsl(145 45% 14%);
|
|
108
|
+
--success-subtle-foreground: hsl(141 79% 85%);
|
|
109
|
+
--success-border: hsl(143 50% 35.5%);
|
|
110
|
+
--warning: hsl(43 96% 64%);
|
|
111
|
+
--warning-foreground: hsl(222 47% 11%);
|
|
112
|
+
--warning-subtle: hsl(28 50% 16%);
|
|
113
|
+
--warning-subtle-foreground: hsl(48 97% 77%);
|
|
114
|
+
--warning-border: hsl(32 65% 39.5%);
|
|
115
|
+
--highlight: hsl(270 95% 75%);
|
|
116
|
+
--highlight-foreground: hsl(222 47% 11%);
|
|
117
|
+
--highlight-subtle: hsl(270 40% 18%);
|
|
118
|
+
--highlight-subtle-foreground: hsl(269 100% 92%);
|
|
119
|
+
--highlight-border: hsl(271 50% 55%);
|
|
120
|
+
--border: hsl(222.8571 6.422% 44.5%);
|
|
121
|
+
--input: hsl(222.8571 6.422% 42%);
|
|
122
|
+
--ring: hsl(213 94% 76%);
|
|
123
|
+
--overlay: hsl(0 0% 0%);
|
|
124
|
+
--overlay-foreground: hsl(0 0% 100%);
|
|
125
|
+
--chart-1: hsl(141.8919 69.1589% 58.0392%);
|
|
126
|
+
--chart-2: hsl(213 94% 76%);
|
|
127
|
+
--chart-3: hsl(0 93.5484% 81.7647%);
|
|
128
|
+
--chart-4: hsl(217.5484 87.5706% 65.2941%);
|
|
129
|
+
--chart-5: hsl(0 0% 62.7451%);
|
|
130
|
+
--sidebar: hsl(240 4.3478% 9.0196%);
|
|
131
|
+
--sidebar-foreground: hsl(0 0% 94.1176%);
|
|
132
|
+
--sidebar-primary: hsl(213 94% 76%);
|
|
133
|
+
--sidebar-primary-foreground: hsl(222 47% 11%);
|
|
134
|
+
--sidebar-accent: hsl(226.6667 9.6774% 18.2353%);
|
|
135
|
+
--sidebar-accent-foreground: hsl(213 94% 76%);
|
|
136
|
+
--sidebar-border: hsl(222.8571 6.422% 40.5%);
|
|
137
|
+
--sidebar-ring: hsl(213 94% 76%);
|
|
138
|
+
--info: var(--primary);
|
|
139
|
+
--info-foreground: var(--primary-foreground);
|
|
140
|
+
--info-subtle: var(--primary-subtle);
|
|
141
|
+
--info-subtle-foreground: var(--primary-subtle-foreground);
|
|
142
|
+
--info-border: var(--primary-border);
|
|
143
|
+
--chart-cat-1: hsl(213 94% 68%);
|
|
144
|
+
--chart-cat-2: hsl(142 69% 58%);
|
|
145
|
+
--chart-cat-3: hsl(43 96% 56%);
|
|
146
|
+
--chart-cat-4: hsl(270 95% 75%);
|
|
147
|
+
--chart-cat-5: hsl(0 91% 71%);
|
|
148
|
+
--chart-cat-6: hsl(187 86% 53%);
|
|
149
|
+
--chart-cat-7: hsl(330 86% 70%);
|
|
150
|
+
--chart-cat-8: hsl(215 20% 65%);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
[data-density="compact"] {
|
|
154
|
+
--control-h-sm: 2rem;
|
|
155
|
+
--control-h: 2.25rem;
|
|
156
|
+
--control-h-lg: 2.5rem;
|
|
157
|
+
--table-cell-py: 0.375rem;
|
|
158
|
+
}
|
package/theme.css
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
@import "./fonts.css";
|
|
2
|
+
@import "./semantic.css";
|
|
3
|
+
@import "./base.css";
|
|
4
|
+
|
|
5
|
+
@custom-variant dark (&:where(.dark, .dark *));
|
|
6
|
+
|
|
7
|
+
@theme inline {
|
|
8
|
+
--color-background: var(--background);
|
|
9
|
+
--color-foreground: var(--foreground);
|
|
10
|
+
--color-card: var(--card);
|
|
11
|
+
--color-card-foreground: var(--card-foreground);
|
|
12
|
+
--color-popover: var(--popover);
|
|
13
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
14
|
+
--color-primary: var(--primary);
|
|
15
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
16
|
+
--color-primary-subtle: var(--primary-subtle);
|
|
17
|
+
--color-primary-subtle-foreground: var(--primary-subtle-foreground);
|
|
18
|
+
--color-primary-border: var(--primary-border);
|
|
19
|
+
--color-secondary: var(--secondary);
|
|
20
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
|
21
|
+
--color-muted: var(--muted);
|
|
22
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
23
|
+
--color-accent: var(--accent);
|
|
24
|
+
--color-accent-foreground: var(--accent-foreground);
|
|
25
|
+
--color-destructive: var(--destructive);
|
|
26
|
+
--color-destructive-foreground: var(--destructive-foreground);
|
|
27
|
+
--color-destructive-subtle: var(--destructive-subtle);
|
|
28
|
+
--color-destructive-subtle-foreground: var(--destructive-subtle-foreground);
|
|
29
|
+
--color-destructive-border: var(--destructive-border);
|
|
30
|
+
--color-success: var(--success);
|
|
31
|
+
--color-success-foreground: var(--success-foreground);
|
|
32
|
+
--color-success-subtle: var(--success-subtle);
|
|
33
|
+
--color-success-subtle-foreground: var(--success-subtle-foreground);
|
|
34
|
+
--color-success-border: var(--success-border);
|
|
35
|
+
--color-warning: var(--warning);
|
|
36
|
+
--color-warning-foreground: var(--warning-foreground);
|
|
37
|
+
--color-warning-subtle: var(--warning-subtle);
|
|
38
|
+
--color-warning-subtle-foreground: var(--warning-subtle-foreground);
|
|
39
|
+
--color-warning-border: var(--warning-border);
|
|
40
|
+
--color-highlight: var(--highlight);
|
|
41
|
+
--color-highlight-foreground: var(--highlight-foreground);
|
|
42
|
+
--color-highlight-subtle: var(--highlight-subtle);
|
|
43
|
+
--color-highlight-subtle-foreground: var(--highlight-subtle-foreground);
|
|
44
|
+
--color-highlight-border: var(--highlight-border);
|
|
45
|
+
--color-border: var(--border);
|
|
46
|
+
--color-input: var(--input);
|
|
47
|
+
--color-ring: var(--ring);
|
|
48
|
+
--color-overlay: var(--overlay);
|
|
49
|
+
--color-overlay-foreground: var(--overlay-foreground);
|
|
50
|
+
--color-chart-1: var(--chart-1);
|
|
51
|
+
--color-chart-2: var(--chart-2);
|
|
52
|
+
--color-chart-3: var(--chart-3);
|
|
53
|
+
--color-chart-4: var(--chart-4);
|
|
54
|
+
--color-chart-5: var(--chart-5);
|
|
55
|
+
--color-sidebar: var(--sidebar);
|
|
56
|
+
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
57
|
+
--color-sidebar-primary: var(--sidebar-primary);
|
|
58
|
+
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
59
|
+
--color-sidebar-accent: var(--sidebar-accent);
|
|
60
|
+
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
61
|
+
--color-sidebar-border: var(--sidebar-border);
|
|
62
|
+
--color-sidebar-ring: var(--sidebar-ring);
|
|
63
|
+
--color-info: var(--info);
|
|
64
|
+
--color-info-foreground: var(--info-foreground);
|
|
65
|
+
--color-info-subtle: var(--info-subtle);
|
|
66
|
+
--color-info-subtle-foreground: var(--info-subtle-foreground);
|
|
67
|
+
--color-info-border: var(--info-border);
|
|
68
|
+
--color-chart-cat-1: var(--chart-cat-1);
|
|
69
|
+
--color-chart-cat-2: var(--chart-cat-2);
|
|
70
|
+
--color-chart-cat-3: var(--chart-cat-3);
|
|
71
|
+
--color-chart-cat-4: var(--chart-cat-4);
|
|
72
|
+
--color-chart-cat-5: var(--chart-cat-5);
|
|
73
|
+
--color-chart-cat-6: var(--chart-cat-6);
|
|
74
|
+
--color-chart-cat-7: var(--chart-cat-7);
|
|
75
|
+
--color-chart-cat-8: var(--chart-cat-8);
|
|
76
|
+
|
|
77
|
+
--radius-sm: calc(var(--radius) - 4px);
|
|
78
|
+
--radius-md: calc(var(--radius) - 2px);
|
|
79
|
+
--radius-lg: var(--radius);
|
|
80
|
+
--radius-control: calc(var(--radius) - 2px);
|
|
81
|
+
--radius-item: calc(var(--radius) - 4px);
|
|
82
|
+
--radius-popup: calc(var(--radius) - 2px);
|
|
83
|
+
--radius-surface: var(--radius);
|
|
84
|
+
|
|
85
|
+
--font-sans: "Manrope", ui-sans-serif, system-ui, sans-serif;
|
|
86
|
+
}
|