@slashsuite/themes 0.0.0-stage → 0.4.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/NOTICE +26 -0
- package/README.md +152 -2
- package/catppuccin-latte.css +452 -0
- package/catppuccin-mocha.css +445 -0
- package/package.json +56 -4
- package/slash-suite-dark.css +445 -0
- package/slash-suite.css +458 -0
- package/thriftloop-dark.css +433 -0
- package/thriftloop.css +414 -0
- package/thrifty-paper.css +403 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Jacobus Langner
|
|
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/NOTICE
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
The Catppuccin Mocha and Latte palettes used by catppuccin-mocha.css and catppuccin-latte.css, and adapted in
|
|
2
|
+
slash-suite.css and slash-suite-dark.css, are from Catppuccin
|
|
3
|
+
(https://github.com/catppuccin/catppuccin) and is reproduced under its MIT license:
|
|
4
|
+
|
|
5
|
+
MIT License
|
|
6
|
+
|
|
7
|
+
Copyright (c) 2021 Catppuccin
|
|
8
|
+
|
|
9
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
10
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
11
|
+
in the Software without restriction, including without limitation the rights
|
|
12
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
13
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
14
|
+
furnished to do so, subject to the following conditions:
|
|
15
|
+
|
|
16
|
+
The above copyright notice and this permission notice shall be included in all
|
|
17
|
+
copies or substantial portions of the Software.
|
|
18
|
+
|
|
19
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
20
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
21
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
22
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
23
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
24
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
25
|
+
SOFTWARE.
|
|
26
|
+
|
package/README.md
CHANGED
|
@@ -1,3 +1,153 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @slashsuite/themes
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The UISlash themes, all in one package. Each theme is one CSS file with its own scope class, and
|
|
4
|
+
each remaps the Tailwind slate/colour utilities that `@slashsuite/ui-react` is written against to its
|
|
5
|
+
own colours. Each also ships a `.link` class.
|
|
6
|
+
|
|
7
|
+
| Theme | File | Scope | |
|
|
8
|
+
| --- | --- | --- | --- |
|
|
9
|
+
| Catppuccin Mocha | `catppuccin-mocha.css` | `.dark` | dark; also declares the class-based `dark` variant |
|
|
10
|
+
| Catppuccin Latte | `catppuccin-latte.css` | `.latte` | light |
|
|
11
|
+
| Thrifty Paper | `thrifty-paper.css` | `.thrifty-paper` | light: cream paper, ink text, clay accent |
|
|
12
|
+
| Thriftloop | `thriftloop.css` | `.thriftloop` | light: butter paper, brown ink, clay accent |
|
|
13
|
+
| Thriftloop Dark | `thriftloop-dark.css` | `.thriftloop-dark` | dark: deep teal night, lit-window clay; declares the `dark` variant on its own scope |
|
|
14
|
+
| Slash suite | `slash-suite.css` | `.slash-suite` | light: Slash Day, a cool blue-grey canvas, navy ink, peach accent |
|
|
15
|
+
| Slash suite dark | `slash-suite-dark.css` | `.slash-suite-dark` | dark: Slash Night, a deep navy ground, peach pastel accent; declares the `dark` variant on its own scope |
|
|
16
|
+
|
|
17
|
+
Status: `0.x`. License: MIT.
|
|
18
|
+
|
|
19
|
+
## Install
|
|
20
|
+
|
|
21
|
+
```sh
|
|
22
|
+
bun add @slashsuite/themes
|
|
23
|
+
# peer: tailwindcss ^4
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Use
|
|
27
|
+
|
|
28
|
+
In your global stylesheet, after Tailwind, import the theme's file:
|
|
29
|
+
|
|
30
|
+
```css
|
|
31
|
+
@import "tailwindcss";
|
|
32
|
+
@import "@slashsuite/themes/catppuccin-mocha.css";
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
and put its scope class on `<html>` (`class="dark"` here). Import one theme, or several and switch
|
|
36
|
+
the class on `<html>`; the scopes do not overlap. The rules are unlayered, so they override
|
|
37
|
+
Tailwind's layered utilities.
|
|
38
|
+
|
|
39
|
+
The scope paints the canvas, so the cards lift off it and the app needs no page-background rule of
|
|
40
|
+
its own. The theme also sets the page font from `--font-sans` and the mono stack from `--font-mono`
|
|
41
|
+
(which starts at `ui-monospace`), so an app ships no page-background or font CSS: `AppShell` paints
|
|
42
|
+
the canvas (`bg-gray-50`, which the theme remaps) and sets `font-sans` and the ink.
|
|
43
|
+
|
|
44
|
+
Each theme chooses its own type faces. Most use Inter, then the system stack; Thriftloop uses DM
|
|
45
|
+
Sans, with DM Serif Display for headings through `--font-heading`. A theme ships no font file, so a
|
|
46
|
+
face shows only where the app loads it or the machine has it; Thriftloop's two come from Google
|
|
47
|
+
Fonts. A Slash theme names Inter, headings included, and JetBrains Mono next after `ui-monospace`
|
|
48
|
+
in its mono stack; the site that installs it loads those font files itself, as for every theme.
|
|
49
|
+
|
|
50
|
+
## How to add a theme
|
|
51
|
+
|
|
52
|
+
Add one CSS file here, `<id>.css`. Its file name is the theme's id, and the id never changes once it
|
|
53
|
+
has baselines. Nothing else registers it: the package's exports and `files` are globs, and Storybook,
|
|
54
|
+
the docs and the e2e all read this folder. `themes.test.ts` is the contract, and it reads every CSS
|
|
55
|
+
file here. Run it with `bunx moon run themes:test`. The repo's
|
|
56
|
+
[README](https://github.com/slashsuite/uislash#how-to-add-a-theme) has the steps.
|
|
57
|
+
|
|
58
|
+
## Colours for chrome the kit cannot draw
|
|
59
|
+
|
|
60
|
+
Some third-party DOM is not made of `@slashsuite/ui-react` parts, so it cannot take a utility: a
|
|
61
|
+
MapLibre popup or control, a map marker. Each theme therefore sets fourteen custom properties on its scope,
|
|
62
|
+
each equal to the value that theme's remap gives the utility named beside it:
|
|
63
|
+
|
|
64
|
+
| Property | Same value as |
|
|
65
|
+
| --- | --- |
|
|
66
|
+
| `--hc-surface` | `.bg-white` background |
|
|
67
|
+
| `--hc-subtle` | `.bg-slate-50` background |
|
|
68
|
+
| `--hc-line` | `.border-slate-200` border |
|
|
69
|
+
| `--hc-ink` | `.text-slate-900` colour |
|
|
70
|
+
| `--hc-mute` | `.text-slate-500` colour |
|
|
71
|
+
| `--hc-accent` | `.text-violet-600` colour |
|
|
72
|
+
| `--hc-cat-1` to `--hc-cat-8` | `.text-indigo-600`, `.text-orange-600`, `.text-teal-600`, `.text-pink-600`, `.text-lime-600`, `.text-fuchsia-600`, `.text-rose-600`, `.text-yellow-600` colour: the categorical scale, so a map pin matches the `Legend` beside it |
|
|
73
|
+
|
|
74
|
+
Read them in your own CSS, with a fallback for the page that has no theme:
|
|
75
|
+
|
|
76
|
+
```css
|
|
77
|
+
.maplibregl-popup-content {
|
|
78
|
+
background: var(--hc-surface, #fff);
|
|
79
|
+
color: var(--hc-ink, #111);
|
|
80
|
+
}
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
With no theme on the page the properties are unset, so the `var()` fallback is yours to choose. The
|
|
84
|
+
values are the theme's own, and `themes.test.ts` checks that each equals its utility's, so a palette
|
|
85
|
+
edit cannot leave them behind.
|
|
86
|
+
|
|
87
|
+
The set grows only when two consumers need the same colour for chrome the kit cannot draw: a tone
|
|
88
|
+
ink (`--hc-positive`, `--hc-warn`, `--hc-danger`, `--hc-info`) is added, tested and remapped in
|
|
89
|
+
every theme then, and not before. A colour only one app needs stays in that app's CSS.
|
|
90
|
+
|
|
91
|
+
## Palettes and attribution
|
|
92
|
+
|
|
93
|
+
### Catppuccin Mocha and Latte
|
|
94
|
+
|
|
95
|
+
The palettes are [Catppuccin](https://github.com/catppuccin/catppuccin) Mocha and Latte, © 2021 Catppuccin, used under the MIT license. The full notice ships in this package as `NOTICE`, and a one-line credit sits at the top of each CSS file. Tailwind's build drops that comment from a consumer's bundled CSS, so an app that wants the credit visible should add its own. This package's own license (MIT, see `LICENSE`) is separate.
|
|
96
|
+
|
|
97
|
+
Mocha: base `#1e1e2e` · mantle `#181825` · crust `#11111b` · surface0 `#313244` · surface1 `#45475a` ·
|
|
98
|
+
surface2 `#585b70` · text `#cdd6f4` · subtext1 `#bac2de` · subtext0 `#a6adc8` · overlay1 `#7f849c` ·
|
|
99
|
+
green `#a6e3a1` · red `#f38ba8` · yellow `#f9e2af` · blue `#89b4fa` · mauve `#cba6f7`
|
|
100
|
+
|
|
101
|
+
Latte: base `#eff1f5` · mantle `#e6e9ef` · crust `#dce0e8` · surface0 `#ccd0da` · text `#4c4f69` ·
|
|
102
|
+
subtext1 `#5c5f77` · subtext0 `#6c6f85` · overlay1 `#8c8fa1` · mauve `#8839ef` · red `#d20f39` ·
|
|
103
|
+
green `#40a02b` · yellow `#df8e1d` · blue `#1e66f5`
|
|
104
|
+
|
|
105
|
+
Latte's accents are strong on white, so its cards are white and lift off the base canvas. Where a
|
|
106
|
+
token alone misses the WCAG AA contrast contract (text 4.5:1, controls 3:1), `catppuccin-latte.css`
|
|
107
|
+
darkens it just enough, and the rule's comment names the token it started from.
|
|
108
|
+
|
|
109
|
+
### Thrifty Paper
|
|
110
|
+
|
|
111
|
+
From Thrifty's light theme. Thrifty has no danger colour of its own, so the red utilities map to a
|
|
112
|
+
deep wine red that sits clear of the clay (danger `#7a1220`, danger-hover `#5f0e1a`, danger-soft
|
|
113
|
+
`#fdf2f4`). The accent is two tones: its fills are the bright clay, and its text (a link, an outline
|
|
114
|
+
button's label) is the deeper `accent-ink`, so a page of links reads as text rather than as a block of
|
|
115
|
+
the primary button.
|
|
116
|
+
|
|
117
|
+
canvas `#fdfbf7` · surface `#ffffff` · subtle `#f7f2e9` · line `#ece3d4` · ink `#1c1917` ·
|
|
118
|
+
ink-body `#3b342e` · ink-mute `#6b6259` · accent `#c2410c` · accent-hover `#9a3412` ·
|
|
119
|
+
accent-ink `#9a3412` · accent-ink-hover `#7c2d12` · accent-soft `#fdf5f0` ·
|
|
120
|
+
positive `#047857` / `#ecfdf5` · warn `#b45309` / `#fffbeb` · note `#0f766e` / `#f0fdfa`
|
|
121
|
+
|
|
122
|
+
### Slash suite and Slash suite dark
|
|
123
|
+
|
|
124
|
+
The Slash suite pair, built from Catppuccin Latte and Mocha (the credit is the same, see above), with
|
|
125
|
+
the suite's peach as the accent. Slash Day is the light ground: canvas `#eef2f9` · card `#ffffff` ·
|
|
126
|
+
subtle `#e6e9f1` · deep `#dee1ea` · lines `#d8dbe5`, `#c6c9d5`, `#b4b7c5` · ink `#24273a` (Macchiato's
|
|
127
|
+
base) · ink-2 `#3a3d52` · mute `#5b5e74` · faint `#85879c`. Slash Night is the dark one: crust
|
|
128
|
+
`#080d1c` · canvas `#0d1326` · card `#19233e` · s0 `#25304d` · s1 `#374463` · s2 `#485574` · ink
|
|
129
|
+
`#e2e8fc` · ink-2 `#ccd4ee` · mute `#c6cce2` · faint `#b1b8d0`.
|
|
130
|
+
|
|
131
|
+
The fills take the Mocha peach pastel `#fab387` in both, with a dark label. On Day the accent text,
|
|
132
|
+
edges and focus rings are the deep peach `#a03604`, since a pastel line is under 3:1 on white. The
|
|
133
|
+
status tones stay Latte's; the avatar initials are the accent's label, so on Day the avatar fills, the
|
|
134
|
+
positive button among them, are Latte's own colours, which the dark label clears. On Night everything is
|
|
135
|
+
the pastel, except the accent text (`#fbc5a1`, lifted so it clears AA on the Callout tints), and the status tones are Mocha's.
|
|
136
|
+
|
|
137
|
+
### Thriftloop
|
|
138
|
+
|
|
139
|
+
From Thriftloop's brand theme, the shop sign: butter paper and brown ink by day, a deep teal night
|
|
140
|
+
where the clay accent glows like a lit window. Both files come from Thrifty's `docs/brand/theme/`
|
|
141
|
+
at `df3e8c8`, one per mode, and the dark file is scoped to `.thriftloop-dark` here so it can sit
|
|
142
|
+
beside Mocha, which owns `.dark`.
|
|
143
|
+
|
|
144
|
+
Thriftloop's danger red is a crimson, clear of the clay in OKLab, so the destructive button does not
|
|
145
|
+
read as the primary one; its accent text is the same clay a step darker than the fill, so a link
|
|
146
|
+
clears 4.5:1 on the cream band while the fill and the focus rings keep the brand `#c2410c`. On the
|
|
147
|
+
dark side the accent text is a step lighter than the fill, for the same reason.
|
|
148
|
+
|
|
149
|
+
light: canvas `#f8f1d8` · surface `#fffaea` · subtle `#f5eac7` · line `#eedca0` · ink `#352d13` ·
|
|
150
|
+
accent `#c2410c` · accent-ink `#be3d04` · danger `#b31960` · warn `#ad4d00` · positive `#047857`
|
|
151
|
+
|
|
152
|
+
dark: canvas `#0c191d` · surface `#102026` · subtle `#18333c` · line `#214450` · ink `#e6edef` ·
|
|
153
|
+
accent `#e2622b` · accent-ink `#f37c4c` · danger `#fca5a5` · warn `#fcd34d` · positive `#6ee7b7`
|
|
@@ -0,0 +1,452 @@
|
|
|
1
|
+
/*! Catppuccin Latte palette © 2021 Catppuccin, MIT license: https://github.com/catppuccin/catppuccin (full notice in NOTICE) */
|
|
2
|
+
/* ---------------------------------------------------------------------------
|
|
3
|
+
Catppuccin Latte: the light theme for the UISlash design system.
|
|
4
|
+
---------------------------------------------------------------------------
|
|
5
|
+
The @slashsuite/ui-react components are written against Tailwind's slate/colour
|
|
6
|
+
utilities directly (bg-white, text-slate-900, …). This file remaps those
|
|
7
|
+
utilities to Catppuccin Latte colours under `.latte`. The rules are
|
|
8
|
+
unlayered, so they override Tailwind's (layered) utilities.
|
|
9
|
+
|
|
10
|
+
Consumers import it AFTER `@import "tailwindcss"` and put `.latte` on <html>
|
|
11
|
+
(see the README for the import line). It is light, so it declares no `dark`
|
|
12
|
+
variant.
|
|
13
|
+
|
|
14
|
+
Palette:
|
|
15
|
+
base #eff1f5 · mantle #e6e9ef · crust #dce0e8 · surface0 #ccd0da
|
|
16
|
+
surface1 #bcc0cc · surface2 #acb0be · overlay1 #8c8fa1 · overlay2 #7c7f93
|
|
17
|
+
subtext0 #6c6f85 · subtext1 #5c5f77 · text #4c4f69
|
|
18
|
+
mauve #8839ef · red #d20f39 · maroon #e64553 · peach #fe640b
|
|
19
|
+
yellow #df8e1d · green #40a02b · teal #179299 · sky #04a5e5
|
|
20
|
+
sapphire #209fb5 · blue #1e66f5 · lavender #7287fd · pink #ea76cb
|
|
21
|
+
|
|
22
|
+
A token moves only where the contrast contract forces it
|
|
23
|
+
(packages/themes-shared/src/contrastRules.ts, run by themes.test.ts); each
|
|
24
|
+
such rule says which token it started from and why it moved. The accents are
|
|
25
|
+
strong on white, so cards are white and lift off the base canvas.
|
|
26
|
+
--------------------------------------------------------------------------- */
|
|
27
|
+
|
|
28
|
+
/* The scope: the page is the base canvas with text ink. */
|
|
29
|
+
.latte {
|
|
30
|
+
color-scheme: light;
|
|
31
|
+
background-color: #eff1f5; /* base: the canvas the white cards lift off */
|
|
32
|
+
color: #4c4f69; /* text */
|
|
33
|
+
/* The type faces: Inter where installed, the system stack otherwise. Custom properties on the
|
|
34
|
+
scope, so every `font-sans` / `font-mono` below it (AppShell's page font included) follows. */
|
|
35
|
+
--font-sans:
|
|
36
|
+
Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
|
|
37
|
+
sans-serif;
|
|
38
|
+
--font-mono:
|
|
39
|
+
ui-monospace, "JetBrains Mono", "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono",
|
|
40
|
+
monospace;
|
|
41
|
+
font-family: var(--font-sans);
|
|
42
|
+
/* Colours for chrome the kit cannot draw (a MapLibre popup, a map marker): the value each named
|
|
43
|
+
utility paints under this scope. A consumer's own CSS reads them with var(--hc-…, fallback). */
|
|
44
|
+
--hc-surface: #ffffff; /* bg-white */
|
|
45
|
+
--hc-subtle: #e6e9ef; /* bg-slate-50 */
|
|
46
|
+
--hc-line: #ccd0da; /* border-slate-200 */
|
|
47
|
+
--hc-ink: #4c4f69; /* text-slate-900 */
|
|
48
|
+
--hc-mute: #616277; /* text-slate-500 */
|
|
49
|
+
--hc-accent: #7828df; /* text-violet-600 */
|
|
50
|
+
--hc-cat-1: #1a60f8; /* text-indigo-600 */
|
|
51
|
+
--hc-cat-2: #e94e05; /* text-orange-600 */
|
|
52
|
+
--hc-cat-3: #2a8c98; /* text-teal-600 */
|
|
53
|
+
--hc-cat-4: #c959a3; /* text-pink-600 */
|
|
54
|
+
--hc-cat-5: #429305; /* text-lime-600 */
|
|
55
|
+
--hc-cat-6: #892bef; /* text-fuchsia-600 */
|
|
56
|
+
--hc-cat-7: #cb023e; /* text-rose-600 */
|
|
57
|
+
--hc-cat-8: #b07704; /* text-yellow-600 */
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/* The page canvas: AppShell paints it; white cards lift off the base. */
|
|
61
|
+
.latte .bg-gray-50 {
|
|
62
|
+
background-color: #eff1f5; /* base */
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* Surfaces: white cards on the base canvas, mantle insets. */
|
|
66
|
+
.latte .bg-white {
|
|
67
|
+
background-color: #ffffff;
|
|
68
|
+
}
|
|
69
|
+
.latte .bg-white\/80 {
|
|
70
|
+
background-color: rgba(255, 255, 255, 0.85);
|
|
71
|
+
}
|
|
72
|
+
.latte .bg-slate-50,
|
|
73
|
+
.latte .bg-slate-50\/50,
|
|
74
|
+
.latte .bg-slate-50\/60,
|
|
75
|
+
.latte .bg-slate-50\/70 {
|
|
76
|
+
background-color: #e6e9ef; /* mantle */
|
|
77
|
+
}
|
|
78
|
+
.latte .bg-slate-100 {
|
|
79
|
+
background-color: #dce0e8; /* crust: one step deeper than mantle */
|
|
80
|
+
}
|
|
81
|
+
/* A loading bone (the skeleton role): opaque, held apart from the canvas, a card and the subtle
|
|
82
|
+
strip by the distinction contract.
|
|
83
|
+
Surface0: the line colour, a shape on mantle, base and crust. */
|
|
84
|
+
.latte .bg-slate-200 {
|
|
85
|
+
background-color: #ccd0da;
|
|
86
|
+
}
|
|
87
|
+
.latte .bg-slate-900 {
|
|
88
|
+
background-color: #4c4f69; /* text: e.g. the brand badge */
|
|
89
|
+
}
|
|
90
|
+
.latte .backdrop\:bg-slate-900\/35::backdrop {
|
|
91
|
+
background-color: rgba(76, 79, 105, 0.35); /* text: the modal scrim */
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/* The media scrim: Lightbox's full-screen viewer. It stays near-black with light text in this light
|
|
95
|
+
theme too, so a photo or a video reads against it as it would in any viewer. Latte has no dark
|
|
96
|
+
token, so the scrim is Mocha crust, the darkest Catppuccin token and the one this package's other
|
|
97
|
+
file uses for the same scrim. */
|
|
98
|
+
.latte .bg-black\/90 {
|
|
99
|
+
background-color: rgba(17, 17, 27, 0.94); /* Mocha crust */
|
|
100
|
+
}
|
|
101
|
+
.latte .text-white {
|
|
102
|
+
color: #eff1f5; /* base */
|
|
103
|
+
}
|
|
104
|
+
.latte .text-white\/70 {
|
|
105
|
+
color: rgba(239, 241, 245, 0.72); /* base/72 */
|
|
106
|
+
}
|
|
107
|
+
.latte .hover\:bg-white\/10:hover {
|
|
108
|
+
background-color: rgba(239, 241, 245, 0.12); /* base/12 */
|
|
109
|
+
}
|
|
110
|
+
.latte .focus-visible\:outline-white:focus-visible {
|
|
111
|
+
outline-color: #eff1f5; /* base */
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/* The media matte (Image framed): the white mat a QR code is scanned off. It stays white in every
|
|
115
|
+
theme, dark ones included, as the scrim above stays black. */
|
|
116
|
+
.latte .bg-white\/100 {
|
|
117
|
+
background-color: #ffffff;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/* Text */
|
|
121
|
+
.latte .text-slate-900,
|
|
122
|
+
.latte .text-slate-800 {
|
|
123
|
+
color: #4c4f69; /* text: incl. bold totals/footers */
|
|
124
|
+
}
|
|
125
|
+
.latte .text-slate-700,
|
|
126
|
+
.latte .text-slate-600 {
|
|
127
|
+
color: #5c5f77; /* subtext1 */
|
|
128
|
+
}
|
|
129
|
+
.latte .text-slate-500 {
|
|
130
|
+
color: #616277; /* subtext0 #6c6f85, darkened: under 4.5:1 on mantle and crust */
|
|
131
|
+
}
|
|
132
|
+
.latte .text-slate-400 {
|
|
133
|
+
color: #64677d; /* subtext0 #6c6f85, darkened: under 4.5:1 on mantle and crust */
|
|
134
|
+
}
|
|
135
|
+
.latte .text-slate-300 {
|
|
136
|
+
color: #8c8fa1; /* overlay1: dimmed (days outside the month); inactive, so under no contrast bar */
|
|
137
|
+
}
|
|
138
|
+
.latte .placeholder\:text-slate-400::placeholder {
|
|
139
|
+
color: #64677d; /* as the muted text above */
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/* Borders */
|
|
143
|
+
.latte .border-slate-50 {
|
|
144
|
+
border-color: #e6e9ef; /* same as bg-slate-50: the ring takes the page colour */
|
|
145
|
+
}
|
|
146
|
+
.latte .border-slate-100 {
|
|
147
|
+
border-color: #dce0e8; /* crust */
|
|
148
|
+
}
|
|
149
|
+
.latte .border-slate-200,
|
|
150
|
+
.latte .border-slate-200\/70 {
|
|
151
|
+
border-color: #ccd0da; /* surface0 */
|
|
152
|
+
}
|
|
153
|
+
.latte .border-slate-300 {
|
|
154
|
+
border-color: #828597; /* overlay1 #8c8fa1, darkened: an input's edge needs 3:1 on white and mantle */
|
|
155
|
+
}
|
|
156
|
+
.latte .border-slate-900 {
|
|
157
|
+
border-color: #4c4f69; /* text */
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/* Money + accent text */
|
|
161
|
+
.latte .text-emerald-600 {
|
|
162
|
+
color: #40a02b; /* green */
|
|
163
|
+
}
|
|
164
|
+
.latte .text-red-600 {
|
|
165
|
+
color: #d20f39; /* red */
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/* Stat-card accent bars */
|
|
169
|
+
.latte .bg-emerald-500 {
|
|
170
|
+
background-color: #40a02b; /* green */
|
|
171
|
+
}
|
|
172
|
+
.latte .bg-red-500 {
|
|
173
|
+
background-color: #d20f39; /* red */
|
|
174
|
+
}
|
|
175
|
+
.latte .bg-slate-300 {
|
|
176
|
+
background-color: #bcc0cc; /* surface1 */
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/* Accent: buttons, focus, controls */
|
|
180
|
+
.latte .bg-violet-600 {
|
|
181
|
+
background-color: #8839ef; /* mauve */
|
|
182
|
+
}
|
|
183
|
+
.latte .hover\:bg-violet-700:hover {
|
|
184
|
+
background-color: #5e6dd1; /* lavender #7287fd, darkened: the white label needs 4.5:1 on the hovered fill */
|
|
185
|
+
}
|
|
186
|
+
.latte .text-violet-50 {
|
|
187
|
+
color: #ffffff; /* text on the mauve button */
|
|
188
|
+
}
|
|
189
|
+
.latte .hover\:text-violet-700:hover {
|
|
190
|
+
color: #515bab; /* lavender #7287fd, darkened: 4.5:1 text on white, mantle and the mauve tint */
|
|
191
|
+
}
|
|
192
|
+
.latte .hover\:bg-violet-50:hover {
|
|
193
|
+
background-color: rgba(
|
|
194
|
+
136,
|
|
195
|
+
57,
|
|
196
|
+
239,
|
|
197
|
+
0.06
|
|
198
|
+
); /* mauve tint, 0.1 lowered so mauve text keeps 4.5:1 on it */
|
|
199
|
+
}
|
|
200
|
+
.latte .border-violet-600 {
|
|
201
|
+
border-color: #8839ef; /* mauve */
|
|
202
|
+
}
|
|
203
|
+
.latte .hover\:border-violet-400:hover {
|
|
204
|
+
border-color: rgba(136, 57, 239, 0.75); /* mauve, 0.6 raised: a hovered field edge needs 3:1 */
|
|
205
|
+
}
|
|
206
|
+
.latte .outline-violet-600 {
|
|
207
|
+
outline-color: #8839ef; /* mauve */
|
|
208
|
+
}
|
|
209
|
+
.latte .target\:outline-violet-600:target {
|
|
210
|
+
outline-color: #8839ef; /* mauve */
|
|
211
|
+
}
|
|
212
|
+
.latte .focus-visible\:outline-violet-600:focus-visible {
|
|
213
|
+
outline-color: #8839ef; /* mauve */
|
|
214
|
+
}
|
|
215
|
+
.latte .has-focus-visible\:outline-violet-600:has(:focus-visible) {
|
|
216
|
+
outline-color: #8839ef; /* mauve */
|
|
217
|
+
}
|
|
218
|
+
.latte .accent-violet-600 {
|
|
219
|
+
accent-color: #8839ef; /* mauve */
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
/* Danger button (Button tone="danger"): solid, outline and ghost */
|
|
223
|
+
.latte .bg-red-600 {
|
|
224
|
+
background-color: #d20f39; /* red */
|
|
225
|
+
}
|
|
226
|
+
.latte .hover\:bg-red-700:hover {
|
|
227
|
+
background-color: #d43f4d; /* maroon #e64553, darkened: the white label needs 4.5:1 on the hovered fill */
|
|
228
|
+
}
|
|
229
|
+
.latte .text-red-50 {
|
|
230
|
+
color: #ffffff; /* text on the red button */
|
|
231
|
+
}
|
|
232
|
+
.latte .border-red-600 {
|
|
233
|
+
border-color: #d20f39; /* red */
|
|
234
|
+
}
|
|
235
|
+
.latte .hover\:bg-red-50:hover {
|
|
236
|
+
background-color: rgba(
|
|
237
|
+
210,
|
|
238
|
+
15,
|
|
239
|
+
57,
|
|
240
|
+
0.06
|
|
241
|
+
); /* red tint, 0.08 lowered so red text keeps 4.5:1 on it */
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
/* Positive button (Button tone="positive"): solid, outline, ghost and the pressed tint.
|
|
245
|
+
bg-emerald-600 is the green mapped below with the avatar colours. */
|
|
246
|
+
.latte .hover\:bg-emerald-700:hover {
|
|
247
|
+
background-color: #178289; /* teal #179299, darkened: the white label needs 4.5:1 on the hovered fill */
|
|
248
|
+
}
|
|
249
|
+
.latte .text-emerald-50 {
|
|
250
|
+
color: #ffffff; /* text on the green button */
|
|
251
|
+
}
|
|
252
|
+
.latte .border-emerald-600 {
|
|
253
|
+
border-color: #3c9827; /* green #40a02b, darkened: the edge needs 3:1 on white */
|
|
254
|
+
}
|
|
255
|
+
.latte .hover\:bg-emerald-50:hover {
|
|
256
|
+
background-color: rgba(
|
|
257
|
+
64,
|
|
258
|
+
160,
|
|
259
|
+
43,
|
|
260
|
+
0.06
|
|
261
|
+
); /* green tint, 0.12 lowered so green text keeps 4.5:1 on it */
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
/* A plain-disabled solid Button (every tone). Half opacity on a saturated fill goes muddy under the
|
|
265
|
+
white label, so it flattens to the same look as a blocked Button (surface0 fill, subtext0 label)
|
|
266
|
+
instead. `.disabled\:opacity-50` is the plain-disabled marker: busy keeps its colour and blocked is
|
|
267
|
+
already flat. */
|
|
268
|
+
.latte .disabled\:opacity-50:disabled:is(.bg-violet-600, .bg-emerald-600, .bg-red-600) {
|
|
269
|
+
opacity: 1;
|
|
270
|
+
background-color: #ccd0da; /* surface0 */
|
|
271
|
+
border-color: #bcc0cc; /* surface1 */
|
|
272
|
+
color: #6c6f85; /* subtext0 */
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
/* Avatar identity colours: violet-600 is the accent above; the rest sit on the theme, each darkened
|
|
276
|
+
from its Latte token until the white initials clear 4.5:1. */
|
|
277
|
+
.latte .bg-orange-600 {
|
|
278
|
+
background-color: #c5530b; /* peach #fe640b */
|
|
279
|
+
}
|
|
280
|
+
.latte .bg-cyan-600 {
|
|
281
|
+
background-color: #208192; /* sapphire #209fb5 */
|
|
282
|
+
}
|
|
283
|
+
.latte .bg-emerald-600 {
|
|
284
|
+
background-color: #338621; /* green #40a02b */
|
|
285
|
+
}
|
|
286
|
+
.latte .bg-sky-600 {
|
|
287
|
+
background-color: #5e6dd1; /* lavender #7287fd */
|
|
288
|
+
}
|
|
289
|
+
.latte .bg-pink-600 {
|
|
290
|
+
background-color: #ad5996; /* pink #ea76cb */
|
|
291
|
+
}
|
|
292
|
+
.latte .bg-amber-600 {
|
|
293
|
+
background-color: #a6681d; /* yellow #df8e1d */
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
/* Hover states */
|
|
297
|
+
.latte .hover\:bg-slate-50:hover {
|
|
298
|
+
background-color: #e6e9ef; /* mantle */
|
|
299
|
+
}
|
|
300
|
+
.latte .hover\:bg-slate-100:hover {
|
|
301
|
+
background-color: #dce0e8; /* crust */
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
/* Coloured callouts / chips: tint backgrounds, full-strength text & borders. The tints are light
|
|
305
|
+
(0.06) so the accent text on them clears 4.5:1; the text tones are darkened from their Latte token
|
|
306
|
+
for the same bar on white, mantle and the tint. */
|
|
307
|
+
.latte .bg-emerald-50,
|
|
308
|
+
.latte .bg-emerald-50\/60,
|
|
309
|
+
.latte .bg-emerald-100 {
|
|
310
|
+
background-color: rgba(64, 160, 43, 0.06); /* green tint */
|
|
311
|
+
}
|
|
312
|
+
.latte .bg-amber-50,
|
|
313
|
+
.latte .bg-amber-50\/60,
|
|
314
|
+
.latte .bg-amber-100 {
|
|
315
|
+
background-color: rgba(223, 142, 29, 0.06); /* yellow tint */
|
|
316
|
+
}
|
|
317
|
+
.latte .bg-red-50 {
|
|
318
|
+
background-color: rgba(210, 15, 57, 0.06); /* red tint */
|
|
319
|
+
}
|
|
320
|
+
.latte .bg-blue-50 {
|
|
321
|
+
background-color: rgba(30, 102, 245, 0.06); /* blue tint */
|
|
322
|
+
}
|
|
323
|
+
.latte .bg-violet-50 {
|
|
324
|
+
background-color: rgba(136, 57, 239, 0.06); /* mauve tint */
|
|
325
|
+
}
|
|
326
|
+
.latte .bg-sky-50 {
|
|
327
|
+
background-color: rgba(4, 165, 229, 0.06); /* sky tint */
|
|
328
|
+
}
|
|
329
|
+
.latte .text-emerald-700,
|
|
330
|
+
.latte .text-emerald-800 {
|
|
331
|
+
color: #276c1f; /* green #40a02b */
|
|
332
|
+
}
|
|
333
|
+
.latte .text-amber-700,
|
|
334
|
+
.latte .text-amber-800,
|
|
335
|
+
.latte .text-amber-900 {
|
|
336
|
+
color: #8c591d; /* yellow #df8e1d */
|
|
337
|
+
}
|
|
338
|
+
.latte .text-red-700,
|
|
339
|
+
.latte .text-red-800,
|
|
340
|
+
.latte .text-red-900 {
|
|
341
|
+
color: #c00f33; /* red #d20f39 */
|
|
342
|
+
}
|
|
343
|
+
.latte .text-blue-600,
|
|
344
|
+
.latte .text-blue-700,
|
|
345
|
+
.latte .text-blue-800,
|
|
346
|
+
.latte .text-blue-900 {
|
|
347
|
+
color: #1e5bd4; /* blue #1e66f5 */
|
|
348
|
+
}
|
|
349
|
+
.latte .text-violet-600,
|
|
350
|
+
.latte .text-violet-700 {
|
|
351
|
+
color: #7828df; /* mauve #8839ef */
|
|
352
|
+
}
|
|
353
|
+
.latte .text-sky-700 {
|
|
354
|
+
color: #046b96; /* sky #04a5e5 */
|
|
355
|
+
}
|
|
356
|
+
/* Chart-only tones (StackedBar, Legend): neutral is a grey apart from muted (subtext0), violet is
|
|
357
|
+
the mauve of the accent. */
|
|
358
|
+
.latte .text-neutral-500 {
|
|
359
|
+
color: #828597; /* overlay1 #8c8fa1, darkened: a chart tone needs 3:1 */
|
|
360
|
+
}
|
|
361
|
+
.latte .text-purple-700 {
|
|
362
|
+
color: #8839ef; /* mauve */
|
|
363
|
+
}
|
|
364
|
+
/* The categorical scale (cat1 to cat8): one colour per category where the colour carries no
|
|
365
|
+
meaning, for a chart and its key. Each starts from this theme's own hue and moved only as far as
|
|
366
|
+
3:1 on every surface and 0.12 apart in OKLab need. */
|
|
367
|
+
.latte .text-indigo-600 {
|
|
368
|
+
color: #1a60f8; /* cat1: blue */
|
|
369
|
+
}
|
|
370
|
+
.latte .text-orange-600 {
|
|
371
|
+
color: #e94e05; /* cat2: peach */
|
|
372
|
+
}
|
|
373
|
+
.latte .text-teal-600 {
|
|
374
|
+
color: #2a8c98; /* cat3: teal */
|
|
375
|
+
}
|
|
376
|
+
.latte .text-pink-600 {
|
|
377
|
+
color: #c959a3; /* cat4: pink */
|
|
378
|
+
}
|
|
379
|
+
.latte .text-lime-600 {
|
|
380
|
+
color: #429305; /* cat5: green */
|
|
381
|
+
}
|
|
382
|
+
.latte .text-fuchsia-600 {
|
|
383
|
+
color: #892bef; /* cat6: mauve */
|
|
384
|
+
}
|
|
385
|
+
.latte .text-rose-600 {
|
|
386
|
+
color: #cb023e; /* cat7: red */
|
|
387
|
+
}
|
|
388
|
+
.latte .text-yellow-600 {
|
|
389
|
+
color: #b07704; /* cat8: yellow */
|
|
390
|
+
}
|
|
391
|
+
.latte .border-emerald-200,
|
|
392
|
+
.latte .border-emerald-300 {
|
|
393
|
+
border-color: rgba(64, 160, 43, 0.4);
|
|
394
|
+
}
|
|
395
|
+
.latte .border-amber-200,
|
|
396
|
+
.latte .border-amber-300 {
|
|
397
|
+
border-color: rgba(223, 142, 29, 0.4);
|
|
398
|
+
}
|
|
399
|
+
.latte .border-amber-600 {
|
|
400
|
+
border-color: #bb761d; /* yellow #df8e1d, darkened: the strong warn edge (Card attention) needs 3:1 */
|
|
401
|
+
}
|
|
402
|
+
.latte .border-red-200,
|
|
403
|
+
.latte .aria-invalid\:border-red-200[aria-invalid="true"],
|
|
404
|
+
.latte .has-aria-invalid\:border-red-200:has([aria-invalid="true"]) {
|
|
405
|
+
border-color: rgba(
|
|
406
|
+
210,
|
|
407
|
+
15,
|
|
408
|
+
57,
|
|
409
|
+
0.65
|
|
410
|
+
); /* an invalid field's edge, and an `aria-invalid` control's edge */
|
|
411
|
+
}
|
|
412
|
+
.latte .border-red-300,
|
|
413
|
+
.latte .border-red-400 {
|
|
414
|
+
border-color: rgba(210, 15, 57, 0.45);
|
|
415
|
+
}
|
|
416
|
+
.latte .border-blue-200,
|
|
417
|
+
.latte .border-blue-300 {
|
|
418
|
+
border-color: rgba(30, 102, 245, 0.4);
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
/* Inline links: mauve (green is reserved for positive values). Alias of @slashsuite/ui-react's
|
|
422
|
+
TextLink (text-violet-600, hover:text-violet-700, remapped above), kept for consumers that still
|
|
423
|
+
write class="link" on a bare <a>. */
|
|
424
|
+
.latte .link {
|
|
425
|
+
color: #7828df; /* mauve */
|
|
426
|
+
font-weight: 500;
|
|
427
|
+
text-underline-offset: 2px;
|
|
428
|
+
transition: color 0.12s ease;
|
|
429
|
+
}
|
|
430
|
+
.latte .link:hover {
|
|
431
|
+
color: #515bab; /* lavender, as hover:text-violet-700 above */
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
/* The hero glow (Hero): three ribbons behind a landing page's title, mauve, teal and pink kept faint
|
|
435
|
+
on the light base. Decoration: the contrast contract holds the hero's text over all three at once. */
|
|
436
|
+
.latte .bg-indigo-400\/25 {
|
|
437
|
+
background-color: rgba(136, 57, 239, 0.05); /* mauve */
|
|
438
|
+
}
|
|
439
|
+
.latte .bg-teal-400\/25 {
|
|
440
|
+
background-color: rgba(23, 146, 153, 0.045); /* teal */
|
|
441
|
+
}
|
|
442
|
+
.latte .bg-rose-400\/25 {
|
|
443
|
+
background-color: rgba(234, 118, 203, 0.05); /* pink */
|
|
444
|
+
}
|
|
445
|
+
/* The danger text drawn on a Callout tint (HC-442): lifted there only, so danger keeps its red everywhere else. */
|
|
446
|
+
.latte .bg-slate-50 .text-red-700,
|
|
447
|
+
.latte .bg-blue-50 .text-red-700,
|
|
448
|
+
.latte .bg-emerald-50 .text-red-700,
|
|
449
|
+
.latte .bg-amber-50 .text-red-700,
|
|
450
|
+
.latte .bg-red-50 .text-red-700 {
|
|
451
|
+
color: #b90e31;
|
|
452
|
+
}
|