@snowztech/ui-css 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 +72 -0
- package/dist/base.css +23 -0
- package/dist/components/avatar.css +35 -0
- package/dist/components/badge.css +18 -0
- package/dist/components/btn.css +53 -0
- package/dist/components/card.css +12 -0
- package/dist/components/copy-button.css +25 -0
- package/dist/components/divider.css +6 -0
- package/dist/components/icon.css +6 -0
- package/dist/components/input.css +15 -0
- package/dist/components/kbd.css +8 -0
- package/dist/components/mark.css +31 -0
- package/dist/components/meta.css +13 -0
- package/dist/components/monogram.css +21 -0
- package/dist/components/pulse.css +34 -0
- package/dist/components/theme-toggle.css +23 -0
- package/dist/snowztech-ui.css +582 -0
- package/dist/snowztech-ui.min.css +1 -0
- package/dist/tokens.css +96 -0
- package/package.json +61 -0
- package/src/base.css +23 -0
- package/src/components/avatar.css +35 -0
- package/src/components/badge.css +18 -0
- package/src/components/btn.css +53 -0
- package/src/components/card.css +12 -0
- package/src/components/copy-button.css +25 -0
- package/src/components/divider.css +6 -0
- package/src/components/icon.css +6 -0
- package/src/components/input.css +15 -0
- package/src/components/kbd.css +8 -0
- package/src/components/mark.css +31 -0
- package/src/components/meta.css +13 -0
- package/src/components/monogram.css +21 -0
- package/src/components/pulse.css +34 -0
- package/src/components/theme-toggle.css +23 -0
- package/src/index.css +17 -0
- package/src/tokens.css +96 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Lucas Neves Pereira
|
|
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
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# @snowztech/ui-css
|
|
2
|
+
|
|
3
|
+
Terminal-minimal CSS design system. Tokens, resets, and component classes. Framework-agnostic.
|
|
4
|
+
|
|
5
|
+
The source of truth for [@snowztech/ui](https://www.npmjs.com/package/@snowztech/ui) (React) and any other framework wrapper.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm i @snowztech/ui-css
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
```js
|
|
14
|
+
import "@snowztech/ui-css";
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## CDN
|
|
18
|
+
|
|
19
|
+
```html
|
|
20
|
+
<link rel="stylesheet"
|
|
21
|
+
href="https://cdn.jsdelivr.net/npm/@snowztech/ui-css@0.2/dist/snowztech-ui.min.css">
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## What's inside
|
|
25
|
+
|
|
26
|
+
- `dist/snowztech-ui.css` · full bundle
|
|
27
|
+
- `dist/snowztech-ui.min.css` · minified bundle
|
|
28
|
+
- `dist/tokens.css` · CSS variables only
|
|
29
|
+
- `dist/base.css` · resets, typography, links, keyframes
|
|
30
|
+
- `dist/components/*.css` · one file per component, opt-in
|
|
31
|
+
|
|
32
|
+
## Subpath imports
|
|
33
|
+
|
|
34
|
+
```js
|
|
35
|
+
import "@snowztech/ui-css/tokens.css"; // vars only
|
|
36
|
+
import "@snowztech/ui-css/components/btn.css"; // single component
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Class catalog
|
|
40
|
+
|
|
41
|
+
Tokens prefix `--sn-`. Classes prefix `sn-`. Modifier classes use `--`.
|
|
42
|
+
|
|
43
|
+
| Class | Modifiers |
|
|
44
|
+
|-------------------|----------------------------------------------------|
|
|
45
|
+
| `sn-btn` | `--sm --lg --primary --secondary --ghost --accent --danger` |
|
|
46
|
+
| `sn-input` | · |
|
|
47
|
+
| `sn-card` | `--rounded --accent --inset` |
|
|
48
|
+
| `sn-badge` | `--accent --success --warning --danger` |
|
|
49
|
+
| `sn-kbd` | · |
|
|
50
|
+
| `sn-divider` | · |
|
|
51
|
+
| `sn-meta`, `sn-prompt` | · |
|
|
52
|
+
| `sn-mark` | `--xs --sm --md --lg --xl --accent --muted` |
|
|
53
|
+
| `sn-monogram` | `--xs --sm --md --lg --inverse` |
|
|
54
|
+
| `sn-avatar` | `--xs --sm --md --lg --xl --square --ring` |
|
|
55
|
+
| `sn-avatar-stack` | · |
|
|
56
|
+
| `sn-pulse` | `--success --warning --danger --accent` |
|
|
57
|
+
| `sn-copy-btn` | uses `data-copied="true"` |
|
|
58
|
+
| `sn-theme-toggle` | reads `[data-theme="light"]` from `<html>` |
|
|
59
|
+
|
|
60
|
+
## Theming
|
|
61
|
+
|
|
62
|
+
Default is dark. Switch by setting `data-theme="light"` on `<html>`:
|
|
63
|
+
|
|
64
|
+
```js
|
|
65
|
+
document.documentElement.setAttribute("data-theme", "light");
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
Override any token by re-declaring on `:root` or a scope:
|
|
69
|
+
|
|
70
|
+
```css
|
|
71
|
+
:root { --sn-accent: #ff5f5f; }
|
|
72
|
+
```
|
package/dist/base.css
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/* Resets and global defaults. Optional. Import tokens.css alone to skip these. */
|
|
2
|
+
|
|
3
|
+
*, *::before, *::after { box-sizing: border-box; }
|
|
4
|
+
html, body { margin: 0; padding: 0; }
|
|
5
|
+
html, body { height: 100%; }
|
|
6
|
+
|
|
7
|
+
body {
|
|
8
|
+
font-family: var(--sn-font-mono);
|
|
9
|
+
font-size: var(--sn-text-sm);
|
|
10
|
+
line-height: var(--sn-leading-normal);
|
|
11
|
+
color: var(--sn-fg);
|
|
12
|
+
background: var(--sn-bg);
|
|
13
|
+
-webkit-font-smoothing: antialiased;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
::selection { background: var(--sn-accent-soft); color: var(--sn-fg); }
|
|
17
|
+
|
|
18
|
+
a { color: var(--sn-accent); text-decoration: none; }
|
|
19
|
+
a:hover { color: var(--sn-accent-hover); }
|
|
20
|
+
|
|
21
|
+
@keyframes sn-spin { to { transform: rotate(360deg); } }
|
|
22
|
+
@keyframes sn-pulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
|
|
23
|
+
@keyframes sn-blink { 50% { opacity: 0; } }
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
.sn-avatar {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
width: var(--sn-avatar-size, 32px);
|
|
6
|
+
height: var(--sn-avatar-size, 32px);
|
|
7
|
+
border-radius: 50%;
|
|
8
|
+
background: var(--sn-bg-elev-1);
|
|
9
|
+
color: var(--sn-fg-muted);
|
|
10
|
+
font-family: var(--sn-font-mono);
|
|
11
|
+
font-size: max(10px, calc(var(--sn-avatar-size, 32px) * 0.38));
|
|
12
|
+
font-weight: 500;
|
|
13
|
+
overflow: hidden;
|
|
14
|
+
flex-shrink: 0;
|
|
15
|
+
vertical-align: middle;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.sn-avatar--square { border-radius: var(--sn-r-xs); }
|
|
19
|
+
.sn-avatar--ring { box-shadow: 0 0 0 1px var(--sn-border-strong); }
|
|
20
|
+
|
|
21
|
+
.sn-avatar--xs { --sn-avatar-size: 20px; }
|
|
22
|
+
.sn-avatar--sm { --sn-avatar-size: 28px; }
|
|
23
|
+
.sn-avatar--md { --sn-avatar-size: 32px; }
|
|
24
|
+
.sn-avatar--lg { --sn-avatar-size: 48px; }
|
|
25
|
+
.sn-avatar--xl { --sn-avatar-size: 64px; }
|
|
26
|
+
|
|
27
|
+
.sn-avatar > img {
|
|
28
|
+
width: 100%;
|
|
29
|
+
height: 100%;
|
|
30
|
+
object-fit: cover;
|
|
31
|
+
display: block;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.sn-avatar-stack { display: inline-flex; }
|
|
35
|
+
.sn-avatar-stack > * + * { margin-left: var(--sn-avatar-overlap, -8px); }
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
.sn-badge {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
gap: 4px;
|
|
5
|
+
font-family: var(--sn-font-mono);
|
|
6
|
+
font-size: var(--sn-text-2xs);
|
|
7
|
+
font-weight: 400;
|
|
8
|
+
padding: 2px 6px;
|
|
9
|
+
border-radius: var(--sn-r-xs);
|
|
10
|
+
border: 1px solid var(--sn-border);
|
|
11
|
+
color: var(--sn-fg-muted);
|
|
12
|
+
height: 18px;
|
|
13
|
+
text-transform: lowercase;
|
|
14
|
+
}
|
|
15
|
+
.sn-badge--accent { color: var(--sn-accent); border-color: var(--sn-accent-border); }
|
|
16
|
+
.sn-badge--success { color: var(--sn-success); border-color: rgba(127, 199, 127, 0.30); }
|
|
17
|
+
.sn-badge--warning { color: var(--sn-warning); border-color: rgba(212, 168, 87, 0.30); }
|
|
18
|
+
.sn-badge--danger { color: var(--sn-danger); border-color: rgba(215, 112, 112, 0.30); }
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
.sn-btn {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
gap: 8px;
|
|
6
|
+
font-family: var(--sn-font-mono);
|
|
7
|
+
font-size: var(--sn-text-sm);
|
|
8
|
+
font-weight: 500;
|
|
9
|
+
line-height: 1;
|
|
10
|
+
border-radius: var(--sn-r-xs);
|
|
11
|
+
padding: 0 14px;
|
|
12
|
+
height: 30px;
|
|
13
|
+
border: 1px solid transparent;
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
transition: background var(--sn-fast) var(--sn-ease),
|
|
16
|
+
border-color var(--sn-fast) var(--sn-ease),
|
|
17
|
+
color var(--sn-fast) var(--sn-ease);
|
|
18
|
+
white-space: nowrap;
|
|
19
|
+
user-select: none;
|
|
20
|
+
background: transparent;
|
|
21
|
+
color: var(--sn-fg);
|
|
22
|
+
}
|
|
23
|
+
.sn-btn:focus-visible { outline: 1px solid var(--sn-accent); outline-offset: 1px; }
|
|
24
|
+
.sn-btn[disabled] { opacity: 0.4; cursor: not-allowed; }
|
|
25
|
+
.sn-btn--sm { height: 24px; font-size: var(--sn-text-xs); padding: 0 10px; }
|
|
26
|
+
.sn-btn--lg { height: 36px; font-size: var(--sn-text-sm); padding: 0 18px; }
|
|
27
|
+
|
|
28
|
+
.sn-btn--primary {
|
|
29
|
+
background: var(--sn-fg);
|
|
30
|
+
color: var(--sn-fg-inverse);
|
|
31
|
+
border-color: var(--sn-fg);
|
|
32
|
+
}
|
|
33
|
+
.sn-btn--primary:hover { background: var(--sn-fg-muted); border-color: var(--sn-fg-muted); }
|
|
34
|
+
|
|
35
|
+
.sn-btn--secondary {
|
|
36
|
+
background: transparent;
|
|
37
|
+
color: var(--sn-fg);
|
|
38
|
+
border-color: var(--sn-border-strong);
|
|
39
|
+
}
|
|
40
|
+
.sn-btn--secondary:hover { border-color: var(--sn-fg-muted); }
|
|
41
|
+
|
|
42
|
+
.sn-btn--ghost { background: transparent; color: var(--sn-fg-muted); }
|
|
43
|
+
.sn-btn--ghost:hover { color: var(--sn-fg); }
|
|
44
|
+
|
|
45
|
+
.sn-btn--accent {
|
|
46
|
+
background: var(--sn-accent);
|
|
47
|
+
color: var(--sn-accent-fg);
|
|
48
|
+
border-color: var(--sn-accent);
|
|
49
|
+
}
|
|
50
|
+
.sn-btn--accent:hover { background: var(--sn-accent-hover); border-color: var(--sn-accent-hover); }
|
|
51
|
+
|
|
52
|
+
.sn-btn--danger { background: transparent; color: var(--sn-danger); border-color: var(--sn-border-strong); }
|
|
53
|
+
.sn-btn--danger:hover { border-color: var(--sn-danger); }
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
.sn-card {
|
|
2
|
+
background: transparent;
|
|
3
|
+
border: 1px solid var(--sn-border);
|
|
4
|
+
border-radius: var(--sn-r-xs);
|
|
5
|
+
padding: var(--sn-s-5);
|
|
6
|
+
}
|
|
7
|
+
.sn-card--rounded { border-radius: var(--sn-r-lg); }
|
|
8
|
+
.sn-card--accent {
|
|
9
|
+
border-color: var(--sn-accent-border);
|
|
10
|
+
background: var(--sn-accent-soft);
|
|
11
|
+
}
|
|
12
|
+
.sn-card--inset { background: var(--sn-bg-inset); }
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
.sn-copy-btn {
|
|
2
|
+
appearance: none;
|
|
3
|
+
border: 1px solid transparent;
|
|
4
|
+
background: transparent;
|
|
5
|
+
color: var(--sn-fg-muted);
|
|
6
|
+
padding: 6px;
|
|
7
|
+
cursor: pointer;
|
|
8
|
+
display: inline-flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
justify-content: center;
|
|
11
|
+
border-radius: var(--sn-r-xs);
|
|
12
|
+
transition: color var(--sn-fast) var(--sn-ease),
|
|
13
|
+
border-color var(--sn-fast) var(--sn-ease);
|
|
14
|
+
}
|
|
15
|
+
.sn-copy-btn:hover { color: var(--sn-fg); }
|
|
16
|
+
.sn-copy-btn:focus-visible { outline: 1px solid var(--sn-accent); outline-offset: 1px; }
|
|
17
|
+
.sn-copy-btn[data-copied="true"],
|
|
18
|
+
.sn-copy-btn[data-copied="true"]:hover {
|
|
19
|
+
color: var(--sn-success);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/* Hide the "copied" icon until the data attribute flips. */
|
|
23
|
+
.sn-copy-btn .sn-copy-btn__copied { display: none; }
|
|
24
|
+
.sn-copy-btn[data-copied="true"] .sn-copy-btn__copied { display: inline-flex; }
|
|
25
|
+
.sn-copy-btn[data-copied="true"] .sn-copy-btn__idle { display: none; }
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
.sn-input {
|
|
2
|
+
font-family: var(--sn-font-mono);
|
|
3
|
+
font-size: var(--sn-text-sm);
|
|
4
|
+
color: var(--sn-fg);
|
|
5
|
+
background: transparent;
|
|
6
|
+
border: 1px solid var(--sn-border-strong);
|
|
7
|
+
border-radius: var(--sn-r-xs);
|
|
8
|
+
padding: 0 10px;
|
|
9
|
+
height: 30px;
|
|
10
|
+
width: 100%;
|
|
11
|
+
transition: border-color var(--sn-fast) var(--sn-ease);
|
|
12
|
+
}
|
|
13
|
+
.sn-input::placeholder { color: var(--sn-fg-faint); }
|
|
14
|
+
.sn-input:hover { border-color: var(--sn-fg-muted); }
|
|
15
|
+
.sn-input:focus { outline: none; border-color: var(--sn-accent); }
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* Wrapper for mark SVGs. The SVG itself owns its art via `currentColor`,
|
|
2
|
+
the class controls layout, sizing, and color hand-off. */
|
|
3
|
+
|
|
4
|
+
.sn-mark {
|
|
5
|
+
display: inline-block;
|
|
6
|
+
vertical-align: middle;
|
|
7
|
+
flex-shrink: 0;
|
|
8
|
+
color: currentColor;
|
|
9
|
+
width: var(--sn-mark-size, 32px);
|
|
10
|
+
height: var(--sn-mark-size, 32px);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.sn-mark--xs { --sn-mark-size: 16px; }
|
|
14
|
+
.sn-mark--sm { --sn-mark-size: 24px; }
|
|
15
|
+
.sn-mark--md { --sn-mark-size: 32px; }
|
|
16
|
+
.sn-mark--lg { --sn-mark-size: 48px; }
|
|
17
|
+
.sn-mark--xl { --sn-mark-size: 64px; }
|
|
18
|
+
|
|
19
|
+
.sn-mark--accent { color: var(--sn-accent); }
|
|
20
|
+
.sn-mark--muted { color: var(--sn-fg-muted); }
|
|
21
|
+
|
|
22
|
+
/* Wordmark */
|
|
23
|
+
.sn-wordmark {
|
|
24
|
+
font-family: var(--sn-font-mono);
|
|
25
|
+
font-size: var(--sn-wordmark-size, 18px);
|
|
26
|
+
font-weight: 700;
|
|
27
|
+
letter-spacing: -0.01em;
|
|
28
|
+
color: currentColor;
|
|
29
|
+
line-height: 1;
|
|
30
|
+
}
|
|
31
|
+
.sn-wordmark__dot { color: var(--sn-accent); }
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
.sn-meta {
|
|
2
|
+
font-family: var(--sn-font-mono);
|
|
3
|
+
font-size: var(--sn-text-2xs);
|
|
4
|
+
letter-spacing: 0.04em;
|
|
5
|
+
text-transform: uppercase;
|
|
6
|
+
color: var(--sn-fg-faint);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.sn-prompt {
|
|
10
|
+
color: var(--sn-fg-faint);
|
|
11
|
+
user-select: none;
|
|
12
|
+
}
|
|
13
|
+
.sn-prompt::before { content: "› "; }
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
.sn-monogram {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
flex-shrink: 0;
|
|
6
|
+
background: var(--sn-monogram-bg, var(--sn-bg));
|
|
7
|
+
color: var(--sn-monogram-fg, var(--sn-fg));
|
|
8
|
+
width: var(--sn-monogram-size, 64px);
|
|
9
|
+
height: var(--sn-monogram-size, 64px);
|
|
10
|
+
border-radius: var(--sn-monogram-radius, var(--sn-r-md));
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.sn-monogram--xs { --sn-monogram-size: 32px; --sn-monogram-radius: var(--sn-r-xs); }
|
|
14
|
+
.sn-monogram--sm { --sn-monogram-size: 48px; --sn-monogram-radius: var(--sn-r-sm); }
|
|
15
|
+
.sn-monogram--md { --sn-monogram-size: 64px; --sn-monogram-radius: var(--sn-r-md); }
|
|
16
|
+
.sn-monogram--lg { --sn-monogram-size: 96px; --sn-monogram-radius: var(--sn-r-lg); }
|
|
17
|
+
|
|
18
|
+
.sn-monogram--inverse {
|
|
19
|
+
--sn-monogram-bg: var(--sn-fg);
|
|
20
|
+
--sn-monogram-fg: var(--sn-bg);
|
|
21
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
.sn-pulse {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
gap: var(--sn-s-2);
|
|
5
|
+
color: var(--sn-fg-muted);
|
|
6
|
+
font-size: var(--sn-text-sm);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.sn-pulse__dot {
|
|
10
|
+
position: relative;
|
|
11
|
+
display: inline-flex;
|
|
12
|
+
width: var(--sn-pulse-size, 8px);
|
|
13
|
+
height: var(--sn-pulse-size, 8px);
|
|
14
|
+
flex-shrink: 0;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.sn-pulse__dot::before,
|
|
18
|
+
.sn-pulse__dot::after {
|
|
19
|
+
content: "";
|
|
20
|
+
position: absolute;
|
|
21
|
+
inset: 0;
|
|
22
|
+
border-radius: 50%;
|
|
23
|
+
background: var(--sn-pulse-color, var(--sn-success));
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.sn-pulse__dot::before {
|
|
27
|
+
opacity: 0.6;
|
|
28
|
+
animation: sn-pulse 2s ease-in-out infinite;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.sn-pulse--success { --sn-pulse-color: var(--sn-success); }
|
|
32
|
+
.sn-pulse--warning { --sn-pulse-color: var(--sn-warning); }
|
|
33
|
+
.sn-pulse--danger { --sn-pulse-color: var(--sn-danger); }
|
|
34
|
+
.sn-pulse--accent { --sn-pulse-color: var(--sn-accent); }
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
.sn-theme-toggle {
|
|
2
|
+
appearance: none;
|
|
3
|
+
border: none;
|
|
4
|
+
background: transparent;
|
|
5
|
+
padding: 6px;
|
|
6
|
+
cursor: pointer;
|
|
7
|
+
display: inline-flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
justify-content: center;
|
|
10
|
+
transition: opacity var(--sn-base);
|
|
11
|
+
}
|
|
12
|
+
.sn-theme-toggle:focus-visible { outline: 1px solid var(--sn-accent); outline-offset: 1px; }
|
|
13
|
+
|
|
14
|
+
.sn-theme-toggle__indicator {
|
|
15
|
+
display: inline-block;
|
|
16
|
+
width: var(--sn-theme-toggle-size, 12px);
|
|
17
|
+
height: var(--sn-theme-toggle-size, 12px);
|
|
18
|
+
border-radius: 50%;
|
|
19
|
+
border: 1px solid var(--sn-fg-muted);
|
|
20
|
+
background: var(--sn-fg);
|
|
21
|
+
transition: background var(--sn-base) var(--sn-ease);
|
|
22
|
+
}
|
|
23
|
+
[data-theme="light"] .sn-theme-toggle__indicator { background: transparent; }
|