@kodentuzo/spotstrap 0.0.0-stage → 0.1.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 +77 -2
- package/dist/js/index.d.ts +17 -0
- package/dist/js/spotstrap.js +3 -0
- package/dist/js/spotstrap.js.map +7 -0
- package/dist/recipes/index.d.ts +86 -0
- package/dist/recipes/index.js +211 -0
- package/dist/recipes/sizes.d.ts +21 -0
- package/dist/spotstrap.css +1694 -0
- package/dist/themes/kodentuzo.css +128 -0
- package/dist/themes/librelifts.css +128 -0
- package/dist/themes/librevitalis.css +128 -0
- package/dist/themes/neutral.css +128 -0
- package/dist/themes/sokobanko.css +135 -0
- package/dist/themes/spotcraft.css +128 -0
- package/dist/themes/tagtape.css +128 -0
- package/dist/themes/vinskiano.css +128 -0
- package/dist/tokens.json +2473 -0
- package/package.json +81 -4
- package/src/components/button.css +168 -0
- package/src/components/disclosure.css +235 -0
- package/src/components/field.css +173 -0
- package/src/components/menu.css +129 -0
- package/src/components/overlay.css +160 -0
- package/src/components/toggle.css +219 -0
- package/src/dark-class.css +19 -0
- package/src/js/index.ts +246 -0
- package/src/native.css +17 -0
- package/src/recipes/index.ts +262 -0
- package/src/recipes/sizes.ts +20 -0
- package/src/tailwind.css +67 -0
- package/src/themes/kodentuzo.css +136 -0
- package/src/themes/librelifts.css +136 -0
- package/src/themes/librevitalis.css +136 -0
- package/src/themes/neutral.css +137 -0
- package/src/themes/sokobanko.css +144 -0
- package/src/themes/spotcraft.css +136 -0
- package/src/themes/tagtape.css +136 -0
- package/src/themes/vinskiano.css +136 -0
- package/src/tokens.css +42 -0
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Spotstrap theme: Spotcraft.
|
|
3
|
+
* Neutral, square corners, Space Grotesk.
|
|
4
|
+
*
|
|
5
|
+
* Static values only, so Tailwind and Uniwind both read this file
|
|
6
|
+
* (docs/decisions/0001-token-contract.md).
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
@theme {
|
|
10
|
+
--color-background: oklch(1 0 0);
|
|
11
|
+
--color-foreground: oklch(0.145 0 0);
|
|
12
|
+
--color-surface: oklch(1 0 0);
|
|
13
|
+
--color-raised: oklch(0.97 0 0);
|
|
14
|
+
--color-card: oklch(1 0 0);
|
|
15
|
+
--color-card-foreground: oklch(0.145 0 0);
|
|
16
|
+
--color-popover: oklch(1 0 0);
|
|
17
|
+
--color-popover-foreground: oklch(0.145 0 0);
|
|
18
|
+
--color-primary: oklch(0.205 0 0);
|
|
19
|
+
--color-primary-foreground: oklch(0.985 0 0);
|
|
20
|
+
--color-secondary: oklch(0.97 0 0);
|
|
21
|
+
--color-secondary-foreground: oklch(0.205 0 0);
|
|
22
|
+
--color-muted: oklch(0.97 0 0);
|
|
23
|
+
--color-muted-foreground: oklch(0.546 0 0);
|
|
24
|
+
--color-accent: oklch(0.205 0 0);
|
|
25
|
+
--color-accent-foreground: oklch(0.985 0 0);
|
|
26
|
+
--color-destructive: oklch(0.577 0.245 27.325);
|
|
27
|
+
--color-destructive-foreground: oklch(0.985 0 0);
|
|
28
|
+
--color-border: oklch(0.922 0 0);
|
|
29
|
+
--color-input: oklch(0.922 0 0);
|
|
30
|
+
--color-ring: oklch(0.708 0 0);
|
|
31
|
+
--color-chart-1: oklch(0.87 0 0);
|
|
32
|
+
--color-chart-2: oklch(0.556 0 0);
|
|
33
|
+
--color-chart-3: oklch(0.439 0 0);
|
|
34
|
+
--color-chart-4: oklch(0.371 0 0);
|
|
35
|
+
--color-chart-5: oklch(0.269 0 0);
|
|
36
|
+
--color-sidebar: oklch(0.985 0 0);
|
|
37
|
+
--color-sidebar-foreground: oklch(0.145 0 0);
|
|
38
|
+
--color-sidebar-primary: oklch(0.205 0 0);
|
|
39
|
+
--color-sidebar-primary-foreground: oklch(0.985 0 0);
|
|
40
|
+
--color-sidebar-accent: oklch(0.97 0 0);
|
|
41
|
+
--color-sidebar-accent-foreground: oklch(0.205 0 0);
|
|
42
|
+
--color-sidebar-border: oklch(0.922 0 0);
|
|
43
|
+
--color-sidebar-ring: oklch(0.708 0 0);
|
|
44
|
+
|
|
45
|
+
--font-sans: "Space Grotesk Variable", ui-sans-serif, system-ui, sans-serif;
|
|
46
|
+
--font-display: "Space Grotesk Variable", ui-sans-serif, system-ui, sans-serif;
|
|
47
|
+
--font-mono: ui-monospace, "SF Mono", Menlo, monospace;
|
|
48
|
+
|
|
49
|
+
--radius: 0;
|
|
50
|
+
--radius-xs: 0;
|
|
51
|
+
--radius-sm: 0;
|
|
52
|
+
--radius-md: 0;
|
|
53
|
+
--radius-lg: 0;
|
|
54
|
+
--radius-xl: 0;
|
|
55
|
+
--radius-2xl: 0;
|
|
56
|
+
--radius-3xl: 0;
|
|
57
|
+
--radius-4xl: 0;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@layer theme {
|
|
61
|
+
:root {
|
|
62
|
+
@variant light {
|
|
63
|
+
--color-background: oklch(1 0 0);
|
|
64
|
+
--color-foreground: oklch(0.145 0 0);
|
|
65
|
+
--color-surface: oklch(1 0 0);
|
|
66
|
+
--color-raised: oklch(0.97 0 0);
|
|
67
|
+
--color-card: oklch(1 0 0);
|
|
68
|
+
--color-card-foreground: oklch(0.145 0 0);
|
|
69
|
+
--color-popover: oklch(1 0 0);
|
|
70
|
+
--color-popover-foreground: oklch(0.145 0 0);
|
|
71
|
+
--color-primary: oklch(0.205 0 0);
|
|
72
|
+
--color-primary-foreground: oklch(0.985 0 0);
|
|
73
|
+
--color-secondary: oklch(0.97 0 0);
|
|
74
|
+
--color-secondary-foreground: oklch(0.205 0 0);
|
|
75
|
+
--color-muted: oklch(0.97 0 0);
|
|
76
|
+
--color-muted-foreground: oklch(0.546 0 0);
|
|
77
|
+
--color-accent: oklch(0.205 0 0);
|
|
78
|
+
--color-accent-foreground: oklch(0.985 0 0);
|
|
79
|
+
--color-destructive: oklch(0.577 0.245 27.325);
|
|
80
|
+
--color-destructive-foreground: oklch(0.985 0 0);
|
|
81
|
+
--color-border: oklch(0.922 0 0);
|
|
82
|
+
--color-input: oklch(0.922 0 0);
|
|
83
|
+
--color-ring: oklch(0.708 0 0);
|
|
84
|
+
--color-chart-1: oklch(0.87 0 0);
|
|
85
|
+
--color-chart-2: oklch(0.556 0 0);
|
|
86
|
+
--color-chart-3: oklch(0.439 0 0);
|
|
87
|
+
--color-chart-4: oklch(0.371 0 0);
|
|
88
|
+
--color-chart-5: oklch(0.269 0 0);
|
|
89
|
+
--color-sidebar: oklch(0.985 0 0);
|
|
90
|
+
--color-sidebar-foreground: oklch(0.145 0 0);
|
|
91
|
+
--color-sidebar-primary: oklch(0.205 0 0);
|
|
92
|
+
--color-sidebar-primary-foreground: oklch(0.985 0 0);
|
|
93
|
+
--color-sidebar-accent: oklch(0.97 0 0);
|
|
94
|
+
--color-sidebar-accent-foreground: oklch(0.205 0 0);
|
|
95
|
+
--color-sidebar-border: oklch(0.922 0 0);
|
|
96
|
+
--color-sidebar-ring: oklch(0.708 0 0);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
@variant dark {
|
|
100
|
+
--color-background: oklch(0.145 0 0);
|
|
101
|
+
--color-foreground: oklch(0.985 0 0);
|
|
102
|
+
--color-surface: oklch(0.205 0 0);
|
|
103
|
+
--color-raised: oklch(0.269 0 0);
|
|
104
|
+
--color-card: oklch(0.205 0 0);
|
|
105
|
+
--color-card-foreground: oklch(0.985 0 0);
|
|
106
|
+
--color-popover: oklch(0.205 0 0);
|
|
107
|
+
--color-popover-foreground: oklch(0.985 0 0);
|
|
108
|
+
--color-primary: oklch(0.922 0 0);
|
|
109
|
+
--color-primary-foreground: oklch(0.205 0 0);
|
|
110
|
+
--color-secondary: oklch(0.269 0 0);
|
|
111
|
+
--color-secondary-foreground: oklch(0.985 0 0);
|
|
112
|
+
--color-muted: oklch(0.269 0 0);
|
|
113
|
+
--color-muted-foreground: oklch(0.708 0 0);
|
|
114
|
+
--color-accent: oklch(0.922 0 0);
|
|
115
|
+
--color-accent-foreground: oklch(0.205 0 0);
|
|
116
|
+
--color-destructive: oklch(0.704 0.191 22.216);
|
|
117
|
+
--color-destructive-foreground: oklch(0.145 0 0);
|
|
118
|
+
--color-border: oklch(1 0 0 / 10%);
|
|
119
|
+
--color-input: oklch(1 0 0 / 15%);
|
|
120
|
+
--color-ring: oklch(0.556 0 0);
|
|
121
|
+
--color-chart-1: oklch(0.87 0 0);
|
|
122
|
+
--color-chart-2: oklch(0.556 0 0);
|
|
123
|
+
--color-chart-3: oklch(0.439 0 0);
|
|
124
|
+
--color-chart-4: oklch(0.371 0 0);
|
|
125
|
+
--color-chart-5: oklch(0.269 0 0);
|
|
126
|
+
--color-sidebar: oklch(0.205 0 0);
|
|
127
|
+
--color-sidebar-foreground: oklch(0.985 0 0);
|
|
128
|
+
--color-sidebar-primary: oklch(0.488 0.243 264.376);
|
|
129
|
+
--color-sidebar-primary-foreground: oklch(0.985 0 0);
|
|
130
|
+
--color-sidebar-accent: oklch(0.269 0 0);
|
|
131
|
+
--color-sidebar-accent-foreground: oklch(0.985 0 0);
|
|
132
|
+
--color-sidebar-border: oklch(1 0 0 / 10%);
|
|
133
|
+
--color-sidebar-ring: oklch(0.556 0 0);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Spotstrap theme: Tagtape.
|
|
3
|
+
* Green on olive, square corners, Oxanium.
|
|
4
|
+
*
|
|
5
|
+
* Static values only, so Tailwind and Uniwind both read this file
|
|
6
|
+
* (docs/decisions/0001-token-contract.md).
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
@theme {
|
|
10
|
+
--color-background: oklch(1 0 0);
|
|
11
|
+
--color-foreground: oklch(0.153 0.006 107.1);
|
|
12
|
+
--color-surface: oklch(1 0 0);
|
|
13
|
+
--color-raised: oklch(0.967 0.001 286.375);
|
|
14
|
+
--color-card: oklch(1 0 0);
|
|
15
|
+
--color-card-foreground: oklch(0.153 0.006 107.1);
|
|
16
|
+
--color-popover: oklch(1 0 0);
|
|
17
|
+
--color-popover-foreground: oklch(0.153 0.006 107.1);
|
|
18
|
+
--color-primary: oklch(0.527 0.154 150.069);
|
|
19
|
+
--color-primary-foreground: oklch(0.982 0.018 155.826);
|
|
20
|
+
--color-secondary: oklch(0.967 0.001 286.375);
|
|
21
|
+
--color-secondary-foreground: oklch(0.21 0.006 285.885);
|
|
22
|
+
--color-muted: oklch(0.966 0.005 106.5);
|
|
23
|
+
--color-muted-foreground: oklch(0.54 0.031 107.3);
|
|
24
|
+
--color-accent: oklch(0.966 0.005 106.5);
|
|
25
|
+
--color-accent-foreground: oklch(0.228 0.013 107.4);
|
|
26
|
+
--color-destructive: oklch(0.577 0.245 27.325);
|
|
27
|
+
--color-destructive-foreground: oklch(0.985 0 0);
|
|
28
|
+
--color-border: oklch(0.93 0.007 106.5);
|
|
29
|
+
--color-input: oklch(0.93 0.007 106.5);
|
|
30
|
+
--color-ring: oklch(0.737 0.021 106.9);
|
|
31
|
+
--color-chart-1: oklch(0.87 0 0);
|
|
32
|
+
--color-chart-2: oklch(0.556 0 0);
|
|
33
|
+
--color-chart-3: oklch(0.439 0 0);
|
|
34
|
+
--color-chart-4: oklch(0.371 0 0);
|
|
35
|
+
--color-chart-5: oklch(0.269 0 0);
|
|
36
|
+
--color-sidebar: oklch(0.988 0.003 106.5);
|
|
37
|
+
--color-sidebar-foreground: oklch(0.153 0.006 107.1);
|
|
38
|
+
--color-sidebar-primary: oklch(0.527 0.154 150.069);
|
|
39
|
+
--color-sidebar-primary-foreground: oklch(0.982 0.018 155.826);
|
|
40
|
+
--color-sidebar-accent: oklch(0.966 0.005 106.5);
|
|
41
|
+
--color-sidebar-accent-foreground: oklch(0.228 0.013 107.4);
|
|
42
|
+
--color-sidebar-border: oklch(0.93 0.007 106.5);
|
|
43
|
+
--color-sidebar-ring: oklch(0.737 0.021 106.9);
|
|
44
|
+
|
|
45
|
+
--font-sans: "Oxanium Variable", ui-sans-serif, system-ui, sans-serif;
|
|
46
|
+
--font-display: "Oxanium Variable", ui-sans-serif, system-ui, sans-serif;
|
|
47
|
+
--font-mono: ui-monospace, "SF Mono", Menlo, monospace;
|
|
48
|
+
|
|
49
|
+
--radius: 0;
|
|
50
|
+
--radius-xs: 0;
|
|
51
|
+
--radius-sm: 0;
|
|
52
|
+
--radius-md: 0;
|
|
53
|
+
--radius-lg: 0;
|
|
54
|
+
--radius-xl: 0;
|
|
55
|
+
--radius-2xl: 0;
|
|
56
|
+
--radius-3xl: 0;
|
|
57
|
+
--radius-4xl: 0;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@layer theme {
|
|
61
|
+
:root {
|
|
62
|
+
@variant light {
|
|
63
|
+
--color-background: oklch(1 0 0);
|
|
64
|
+
--color-foreground: oklch(0.153 0.006 107.1);
|
|
65
|
+
--color-surface: oklch(1 0 0);
|
|
66
|
+
--color-raised: oklch(0.967 0.001 286.375);
|
|
67
|
+
--color-card: oklch(1 0 0);
|
|
68
|
+
--color-card-foreground: oklch(0.153 0.006 107.1);
|
|
69
|
+
--color-popover: oklch(1 0 0);
|
|
70
|
+
--color-popover-foreground: oklch(0.153 0.006 107.1);
|
|
71
|
+
--color-primary: oklch(0.527 0.154 150.069);
|
|
72
|
+
--color-primary-foreground: oklch(0.982 0.018 155.826);
|
|
73
|
+
--color-secondary: oklch(0.967 0.001 286.375);
|
|
74
|
+
--color-secondary-foreground: oklch(0.21 0.006 285.885);
|
|
75
|
+
--color-muted: oklch(0.966 0.005 106.5);
|
|
76
|
+
--color-muted-foreground: oklch(0.54 0.031 107.3);
|
|
77
|
+
--color-accent: oklch(0.966 0.005 106.5);
|
|
78
|
+
--color-accent-foreground: oklch(0.228 0.013 107.4);
|
|
79
|
+
--color-destructive: oklch(0.577 0.245 27.325);
|
|
80
|
+
--color-destructive-foreground: oklch(0.985 0 0);
|
|
81
|
+
--color-border: oklch(0.93 0.007 106.5);
|
|
82
|
+
--color-input: oklch(0.93 0.007 106.5);
|
|
83
|
+
--color-ring: oklch(0.737 0.021 106.9);
|
|
84
|
+
--color-chart-1: oklch(0.87 0 0);
|
|
85
|
+
--color-chart-2: oklch(0.556 0 0);
|
|
86
|
+
--color-chart-3: oklch(0.439 0 0);
|
|
87
|
+
--color-chart-4: oklch(0.371 0 0);
|
|
88
|
+
--color-chart-5: oklch(0.269 0 0);
|
|
89
|
+
--color-sidebar: oklch(0.988 0.003 106.5);
|
|
90
|
+
--color-sidebar-foreground: oklch(0.153 0.006 107.1);
|
|
91
|
+
--color-sidebar-primary: oklch(0.527 0.154 150.069);
|
|
92
|
+
--color-sidebar-primary-foreground: oklch(0.982 0.018 155.826);
|
|
93
|
+
--color-sidebar-accent: oklch(0.966 0.005 106.5);
|
|
94
|
+
--color-sidebar-accent-foreground: oklch(0.228 0.013 107.4);
|
|
95
|
+
--color-sidebar-border: oklch(0.93 0.007 106.5);
|
|
96
|
+
--color-sidebar-ring: oklch(0.737 0.021 106.9);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
@variant dark {
|
|
100
|
+
--color-background: oklch(0.153 0.006 107.1);
|
|
101
|
+
--color-foreground: oklch(0.988 0.003 106.5);
|
|
102
|
+
--color-surface: oklch(0.228 0.013 107.4);
|
|
103
|
+
--color-raised: oklch(0.274 0.006 286.033);
|
|
104
|
+
--color-card: oklch(0.228 0.013 107.4);
|
|
105
|
+
--color-card-foreground: oklch(0.988 0.003 106.5);
|
|
106
|
+
--color-popover: oklch(0.228 0.013 107.4);
|
|
107
|
+
--color-popover-foreground: oklch(0.988 0.003 106.5);
|
|
108
|
+
--color-primary: oklch(0.448 0.119 151.328);
|
|
109
|
+
--color-primary-foreground: oklch(0.982 0.018 155.826);
|
|
110
|
+
--color-secondary: oklch(0.274 0.006 286.033);
|
|
111
|
+
--color-secondary-foreground: oklch(0.985 0 0);
|
|
112
|
+
--color-muted: oklch(0.286 0.016 107.4);
|
|
113
|
+
--color-muted-foreground: oklch(0.737 0.021 106.9);
|
|
114
|
+
--color-accent: oklch(0.286 0.016 107.4);
|
|
115
|
+
--color-accent-foreground: oklch(0.988 0.003 106.5);
|
|
116
|
+
--color-destructive: oklch(0.704 0.191 22.216);
|
|
117
|
+
--color-destructive-foreground: oklch(0.145 0 0);
|
|
118
|
+
--color-border: oklch(1 0 0 / 10%);
|
|
119
|
+
--color-input: oklch(1 0 0 / 15%);
|
|
120
|
+
--color-ring: oklch(0.58 0.031 107.3);
|
|
121
|
+
--color-chart-1: oklch(0.87 0 0);
|
|
122
|
+
--color-chart-2: oklch(0.556 0 0);
|
|
123
|
+
--color-chart-3: oklch(0.439 0 0);
|
|
124
|
+
--color-chart-4: oklch(0.371 0 0);
|
|
125
|
+
--color-chart-5: oklch(0.269 0 0);
|
|
126
|
+
--color-sidebar: oklch(0.228 0.013 107.4);
|
|
127
|
+
--color-sidebar-foreground: oklch(0.988 0.003 106.5);
|
|
128
|
+
--color-sidebar-primary: oklch(0.448 0.119 151.328);
|
|
129
|
+
--color-sidebar-primary-foreground: oklch(0.982 0.018 155.826);
|
|
130
|
+
--color-sidebar-accent: oklch(0.286 0.016 107.4);
|
|
131
|
+
--color-sidebar-accent-foreground: oklch(0.988 0.003 106.5);
|
|
132
|
+
--color-sidebar-border: oklch(1 0 0 / 10%);
|
|
133
|
+
--color-sidebar-ring: oklch(0.58 0.031 107.3);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Spotstrap theme: Vinskiano.
|
|
3
|
+
* Crimson on mauve, soft corners, Inter.
|
|
4
|
+
*
|
|
5
|
+
* Static values only, so Tailwind and Uniwind both read this file
|
|
6
|
+
* (docs/decisions/0001-token-contract.md).
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
@theme {
|
|
10
|
+
--color-background: oklch(1 0 0);
|
|
11
|
+
--color-foreground: oklch(0.145 0.008 326);
|
|
12
|
+
--color-surface: oklch(1 0 0);
|
|
13
|
+
--color-raised: oklch(0.967 0.001 286.375);
|
|
14
|
+
--color-card: oklch(1 0 0);
|
|
15
|
+
--color-card-foreground: oklch(0.145 0.008 326);
|
|
16
|
+
--color-popover: oklch(1 0 0);
|
|
17
|
+
--color-popover-foreground: oklch(0.145 0.008 326);
|
|
18
|
+
--color-primary: oklch(0.514 0.222 16.935);
|
|
19
|
+
--color-primary-foreground: oklch(0.969 0.015 12.422);
|
|
20
|
+
--color-secondary: oklch(0.967 0.001 286.375);
|
|
21
|
+
--color-secondary-foreground: oklch(0.21 0.006 285.885);
|
|
22
|
+
--color-muted: oklch(0.96 0.003 325.6);
|
|
23
|
+
--color-muted-foreground: oklch(0.542 0.034 322.5);
|
|
24
|
+
--color-accent: oklch(0.96 0.003 325.6);
|
|
25
|
+
--color-accent-foreground: oklch(0.212 0.019 322.12);
|
|
26
|
+
--color-destructive: oklch(0.577 0.245 27.325);
|
|
27
|
+
--color-destructive-foreground: oklch(0.985 0 0);
|
|
28
|
+
--color-border: oklch(0.922 0.005 325.62);
|
|
29
|
+
--color-input: oklch(0.922 0.005 325.62);
|
|
30
|
+
--color-ring: oklch(0.711 0.019 323.02);
|
|
31
|
+
--color-chart-1: oklch(0.87 0 0);
|
|
32
|
+
--color-chart-2: oklch(0.556 0 0);
|
|
33
|
+
--color-chart-3: oklch(0.439 0 0);
|
|
34
|
+
--color-chart-4: oklch(0.371 0 0);
|
|
35
|
+
--color-chart-5: oklch(0.269 0 0);
|
|
36
|
+
--color-sidebar: oklch(1 0 0);
|
|
37
|
+
--color-sidebar-foreground: oklch(0.145 0.008 326);
|
|
38
|
+
--color-sidebar-primary: oklch(0.514 0.222 16.935);
|
|
39
|
+
--color-sidebar-primary-foreground: oklch(0.969 0.015 12.422);
|
|
40
|
+
--color-sidebar-accent: oklch(0.96 0.003 325.6);
|
|
41
|
+
--color-sidebar-accent-foreground: oklch(0.212 0.019 322.12);
|
|
42
|
+
--color-sidebar-border: oklch(0.922 0.005 325.62);
|
|
43
|
+
--color-sidebar-ring: oklch(0.711 0.019 323.02);
|
|
44
|
+
|
|
45
|
+
--font-sans: "Inter Variable", "Inter Fallback", ui-sans-serif, system-ui, sans-serif;
|
|
46
|
+
--font-display: "Inter Variable", "Inter Fallback", ui-sans-serif, system-ui, sans-serif;
|
|
47
|
+
--font-mono: ui-monospace, "SF Mono", Menlo, monospace;
|
|
48
|
+
|
|
49
|
+
--radius: 0.875rem;
|
|
50
|
+
--radius-xs: 0.35rem;
|
|
51
|
+
--radius-sm: 0.525rem;
|
|
52
|
+
--radius-md: 0.7rem;
|
|
53
|
+
--radius-lg: 0.875rem;
|
|
54
|
+
--radius-xl: 1.225rem;
|
|
55
|
+
--radius-2xl: 1.575rem;
|
|
56
|
+
--radius-3xl: 1.925rem;
|
|
57
|
+
--radius-4xl: 2.275rem;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@layer theme {
|
|
61
|
+
:root {
|
|
62
|
+
@variant light {
|
|
63
|
+
--color-background: oklch(1 0 0);
|
|
64
|
+
--color-foreground: oklch(0.145 0.008 326);
|
|
65
|
+
--color-surface: oklch(1 0 0);
|
|
66
|
+
--color-raised: oklch(0.967 0.001 286.375);
|
|
67
|
+
--color-card: oklch(1 0 0);
|
|
68
|
+
--color-card-foreground: oklch(0.145 0.008 326);
|
|
69
|
+
--color-popover: oklch(1 0 0);
|
|
70
|
+
--color-popover-foreground: oklch(0.145 0.008 326);
|
|
71
|
+
--color-primary: oklch(0.514 0.222 16.935);
|
|
72
|
+
--color-primary-foreground: oklch(0.969 0.015 12.422);
|
|
73
|
+
--color-secondary: oklch(0.967 0.001 286.375);
|
|
74
|
+
--color-secondary-foreground: oklch(0.21 0.006 285.885);
|
|
75
|
+
--color-muted: oklch(0.96 0.003 325.6);
|
|
76
|
+
--color-muted-foreground: oklch(0.542 0.034 322.5);
|
|
77
|
+
--color-accent: oklch(0.96 0.003 325.6);
|
|
78
|
+
--color-accent-foreground: oklch(0.212 0.019 322.12);
|
|
79
|
+
--color-destructive: oklch(0.577 0.245 27.325);
|
|
80
|
+
--color-destructive-foreground: oklch(0.985 0 0);
|
|
81
|
+
--color-border: oklch(0.922 0.005 325.62);
|
|
82
|
+
--color-input: oklch(0.922 0.005 325.62);
|
|
83
|
+
--color-ring: oklch(0.711 0.019 323.02);
|
|
84
|
+
--color-chart-1: oklch(0.87 0 0);
|
|
85
|
+
--color-chart-2: oklch(0.556 0 0);
|
|
86
|
+
--color-chart-3: oklch(0.439 0 0);
|
|
87
|
+
--color-chart-4: oklch(0.371 0 0);
|
|
88
|
+
--color-chart-5: oklch(0.269 0 0);
|
|
89
|
+
--color-sidebar: oklch(1 0 0);
|
|
90
|
+
--color-sidebar-foreground: oklch(0.145 0.008 326);
|
|
91
|
+
--color-sidebar-primary: oklch(0.514 0.222 16.935);
|
|
92
|
+
--color-sidebar-primary-foreground: oklch(0.969 0.015 12.422);
|
|
93
|
+
--color-sidebar-accent: oklch(0.96 0.003 325.6);
|
|
94
|
+
--color-sidebar-accent-foreground: oklch(0.212 0.019 322.12);
|
|
95
|
+
--color-sidebar-border: oklch(0.922 0.005 325.62);
|
|
96
|
+
--color-sidebar-ring: oklch(0.711 0.019 323.02);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
@variant dark {
|
|
100
|
+
--color-background: oklch(0.145 0.008 326);
|
|
101
|
+
--color-foreground: oklch(0.985 0 0);
|
|
102
|
+
--color-surface: oklch(0.212 0.019 322.12);
|
|
103
|
+
--color-raised: oklch(0.274 0.006 286.033);
|
|
104
|
+
--color-card: oklch(0.212 0.019 322.12);
|
|
105
|
+
--color-card-foreground: oklch(0.985 0 0);
|
|
106
|
+
--color-popover: oklch(0.212 0.019 322.12);
|
|
107
|
+
--color-popover-foreground: oklch(0.985 0 0);
|
|
108
|
+
--color-primary: oklch(0.455 0.188 13.697);
|
|
109
|
+
--color-primary-foreground: oklch(0.969 0.015 12.422);
|
|
110
|
+
--color-secondary: oklch(0.274 0.006 286.033);
|
|
111
|
+
--color-secondary-foreground: oklch(0.985 0 0);
|
|
112
|
+
--color-muted: oklch(0.263 0.024 320.12);
|
|
113
|
+
--color-muted-foreground: oklch(0.711 0.019 323.02);
|
|
114
|
+
--color-accent: oklch(0.263 0.024 320.12);
|
|
115
|
+
--color-accent-foreground: oklch(0.985 0 0);
|
|
116
|
+
--color-destructive: oklch(0.704 0.191 22.216);
|
|
117
|
+
--color-destructive-foreground: oklch(0.145 0 0);
|
|
118
|
+
--color-border: oklch(1 0 0 / 10%);
|
|
119
|
+
--color-input: oklch(1 0 0 / 15%);
|
|
120
|
+
--color-ring: oklch(0.542 0.034 322.5);
|
|
121
|
+
--color-chart-1: oklch(0.87 0 0);
|
|
122
|
+
--color-chart-2: oklch(0.556 0 0);
|
|
123
|
+
--color-chart-3: oklch(0.439 0 0);
|
|
124
|
+
--color-chart-4: oklch(0.371 0 0);
|
|
125
|
+
--color-chart-5: oklch(0.269 0 0);
|
|
126
|
+
--color-sidebar: oklch(0.212 0.019 322.12);
|
|
127
|
+
--color-sidebar-foreground: oklch(0.985 0 0);
|
|
128
|
+
--color-sidebar-primary: oklch(0.455 0.188 13.697);
|
|
129
|
+
--color-sidebar-primary-foreground: oklch(0.969 0.015 12.422);
|
|
130
|
+
--color-sidebar-accent: oklch(0.263 0.024 320.12);
|
|
131
|
+
--color-sidebar-accent-foreground: oklch(0.985 0 0);
|
|
132
|
+
--color-sidebar-border: oklch(1 0 0 / 10%);
|
|
133
|
+
--color-sidebar-ring: oklch(0.542 0.034 322.5);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
package/src/tokens.css
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Sizes and type, for the web (tailwind.css) and React Native (native.css). Static values
|
|
3
|
+
* only, so Uniwind reads them too. The recipes' numbers in src/recipes/sizes.ts must match;
|
|
4
|
+
* a test checks.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/*
|
|
8
|
+
* Touch sizes, from Apple's HIG (docs/decisions/0003-touch-sizes-and-type.md). In rem, so
|
|
9
|
+
* they grow with the text size. Use them as `h-(--size-control)`, `gap-(--gap-control)`.
|
|
10
|
+
*/
|
|
11
|
+
@theme static {
|
|
12
|
+
--size-control: 2.75rem; /* 44px */
|
|
13
|
+
--size-control-compact: 2.25rem; /* 36px; its hit area stays 44px */
|
|
14
|
+
--gap-control: 0.75rem; /* 12px between targets */
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/* Apple's iOS text styles, as `text-body`, `text-title-1`… Body text is 17px. */
|
|
18
|
+
@theme {
|
|
19
|
+
--text-large-title: 2.125rem;
|
|
20
|
+
--text-large-title--line-height: 2.5625rem;
|
|
21
|
+
--text-title-1: 1.75rem;
|
|
22
|
+
--text-title-1--line-height: 2.125rem;
|
|
23
|
+
--text-title-2: 1.375rem;
|
|
24
|
+
--text-title-2--line-height: 1.75rem;
|
|
25
|
+
--text-title-3: 1.25rem;
|
|
26
|
+
--text-title-3--line-height: 1.5625rem;
|
|
27
|
+
--text-headline: 1.0625rem;
|
|
28
|
+
--text-headline--line-height: 1.375rem;
|
|
29
|
+
--text-headline--font-weight: 600;
|
|
30
|
+
--text-body: 1.0625rem;
|
|
31
|
+
--text-body--line-height: 1.375rem;
|
|
32
|
+
--text-callout: 1rem;
|
|
33
|
+
--text-callout--line-height: 1.3125rem;
|
|
34
|
+
--text-subhead: 0.9375rem;
|
|
35
|
+
--text-subhead--line-height: 1.25rem;
|
|
36
|
+
--text-footnote: 0.8125rem;
|
|
37
|
+
--text-footnote--line-height: 1.125rem;
|
|
38
|
+
--text-caption-1: 0.75rem;
|
|
39
|
+
--text-caption-1--line-height: 1rem;
|
|
40
|
+
--text-caption-2: 0.6875rem;
|
|
41
|
+
--text-caption-2--line-height: 0.8125rem;
|
|
42
|
+
}
|