Repository navigation
Expand file tree
/
Copy pathstyles.css
More file actions
137 lines (126 loc) · 5.8 KB
/
Copy pathstyles.css
File metadata and controls
137 lines (126 loc) · 5.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
/* Neutral, the built-in Topcoat theme.
The theme is a small set of design tokens. Components refer to tokens only,
never to raw colors, so a project restyles itself by editing the values in
`:root` and `.dark` below.
--background the page background
--foreground text and iconography on the background
--card cards and panel backgrounds
--card-foreground text and iconography on cards and panels
--popover floating menu and popover backgrounds
--popover-foreground text and iconography on floating surfaces
--muted-foreground secondary text: captions, descriptions, placeholders
--primary the emphasis color: primary actions, selection, highlights
--primary-foreground text on a primary-filled surface
--destructive destructive actions and error states
--destructive-foreground text on a destructive-filled surface
--border hairline borders and dividers
--ring the focus ring
--sidebar the sidebar background
--sidebar-foreground sidebar text and icons
--sidebar-primary primary actions inside the sidebar
--sidebar-primary-foreground text on sidebar primary actions
--sidebar-accent sidebar hover and selected backgrounds
--sidebar-accent-foreground text on sidebar accents
--sidebar-border sidebar borders and dividers
--sidebar-ring sidebar focus rings
--shadow-xs a subtle shadow for raised controls
--shadow-sm a shadow for raised surfaces: cards, menus
Components derive hover and press states from their fill or foreground
color at reduced opacity. The sidebar has its own accent token for
interactive rows, so it can be themed independently.
The Geist font is not bundled here; provide it with topcoat-font. */
@import "tailwindcss";
/* Scan the project's Rust sources for the Tailwind classes they use. This
file is installed at the project root, so `./src` is the crate's source. */
@source "./src/**/*.rs";
/* Dark mode is opted into by putting the `dark` class on an ancestor,
typically <html>. */
@custom-variant dark (&:is(.dark *));
/* Expose the tokens as Tailwind utilities (`bg-background`, `text-primary`,
`border-border`, ...). The indirection through plain variables on `:root`
and `.dark` is what lets the values swap when the color scheme changes. */
@theme inline {
--font-sans: "Geist", sans-serif;
--color-background: var(--background);
--color-foreground: var(--foreground);
--color-card: var(--card);
--color-card-foreground: var(--card-foreground);
--color-popover: var(--popover);
--color-popover-foreground: var(--popover-foreground);
--color-muted-foreground: var(--muted-foreground);
--color-primary: var(--primary);
--color-primary-foreground: var(--primary-foreground);
--color-destructive: var(--destructive);
--color-destructive-foreground: var(--destructive-foreground);
--color-border: var(--border);
--color-ring: var(--ring);
--color-sidebar: var(--sidebar);
--color-sidebar-foreground: var(--sidebar-foreground);
--color-sidebar-primary: var(--sidebar-primary);
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
--color-sidebar-accent: var(--sidebar-accent);
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
--color-sidebar-border: var(--sidebar-border);
--color-sidebar-ring: var(--sidebar-ring);
--shadow-xs: var(--shadow-xs);
--shadow-sm: var(--shadow-sm);
}
:root {
--background: oklch(0.9875 0.003 260);
--foreground: oklch(0.24 0.012 260);
--card: oklch(0.995 0.003 260);
--card-foreground: oklch(0.24 0.012 260);
--popover: oklch(0.995 0.003 260);
--popover-foreground: oklch(0.24 0.012 260);
--muted-foreground: oklch(0.51 0.014 260);
--primary: oklch(0.21 0.02 260);
--primary-foreground: oklch(0.985 0.003 260);
--destructive: oklch(0.55 0.2 27);
--destructive-foreground: oklch(0.99 0.012 27);
--border: oklch(0.9 0.008 260);
--ring: oklch(0.32 0.02 260);
--sidebar: oklch(0.995 0.003 260);
--sidebar-foreground: oklch(0.24 0.012 260);
--sidebar-primary: oklch(0.21 0.02 260);
--sidebar-primary-foreground: oklch(0.985 0.003 260);
--sidebar-accent: color-mix(in oklab, var(--sidebar-foreground) 10%, var(--sidebar));
--sidebar-accent-foreground: oklch(0.24 0.012 260);
--sidebar-border: oklch(0.9 0.008 260);
--sidebar-ring: oklch(0.32 0.02 260);
--shadow-xs: 0 1px 2px oklch(0.24 0.02 260 / 12%);
--shadow-sm:
0 1px 2px oklch(0.24 0.02 260 / 10%),
0 2px 8px -2px oklch(0.24 0.02 260 / 9%);
}
.dark {
--background: oklch(0.17 0.012 260);
--foreground: oklch(0.93 0.006 260);
--card: oklch(0.22 0.012 260);
--card-foreground: oklch(0.93 0.006 260);
--popover: oklch(0.22 0.012 260);
--popover-foreground: oklch(0.93 0.006 260);
--muted-foreground: oklch(0.68 0.012 260);
--primary: oklch(0.92 0.008 260);
--primary-foreground: oklch(0.21 0.015 260);
--destructive: oklch(0.66 0.18 25);
--destructive-foreground: oklch(0.14 0.02 25);
--border: oklch(0.3 0.012 260);
--ring: oklch(0.6 0.02 260);
--sidebar: oklch(0.22 0.012 260);
--sidebar-foreground: oklch(0.93 0.006 260);
--sidebar-primary: oklch(0.92 0.008 260);
--sidebar-primary-foreground: oklch(0.21 0.015 260);
--sidebar-accent: color-mix(in oklab, var(--sidebar-foreground) 10%, var(--sidebar));
--sidebar-accent-foreground: oklch(0.93 0.006 260);
--sidebar-border: oklch(0.3 0.012 260);
--sidebar-ring: oklch(0.6 0.02 260);
--shadow-xs: 0 1px 2px oklch(0 0 0 / 35%);
--shadow-sm:
0 1px 2px oklch(0 0 0 / 35%),
0 2px 8px -2px oklch(0 0 0 / 30%);
}
@layer base {
body {
@apply bg-background font-sans text-foreground;
}
}