@plexui/ui 0.15.2 → 0.15.3
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/dist/es/styles/index.css
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
/* Tailwind & Reset */
|
|
2
2
|
@import "./base";
|
|
3
|
-
/*
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
/* Tier 0 — radius / font / font-weight tokens, declared in :root so
|
|
4
|
+
semantic and components tiers can reference `var(--radius-*)`,
|
|
5
|
+
`var(--font-sans)`, `var(--font-weight-*)`. We deliberately do NOT
|
|
6
|
+
use `@theme static {…}` here: that would write into Tailwind's theme
|
|
7
|
+
layer, reset Tailwind's own `--radius-*` defaults via `--radius-*:
|
|
8
|
+
initial`, and break consumer-side Tailwind utilities like
|
|
9
|
+
`rounded-md`, `rounded-full`, `text-sm`. The standalone
|
|
10
|
+
`@plexui/ui/styles/variables-tailwind-theme.css` sub-export remains
|
|
11
|
+
for consumers who explicitly want Plex's scale to power their
|
|
12
|
+
Tailwind utilities. */
|
|
13
|
+
@import "./variables-tokens-root";
|
|
8
14
|
/* Tier 1 tokens: Primitives */
|
|
9
15
|
@import "./variables-primitive";
|
|
10
16
|
/* Tier 2 tokens: Semantic */
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Plex UI tokens that semantic + components tiers reference via var(...).
|
|
3
|
+
*
|
|
4
|
+
* These live in `:root` (NOT in `@theme static`) so they don't interfere
|
|
5
|
+
* with the consumer's Tailwind theme. With this layout:
|
|
6
|
+
* - Plex UI components see `--radius-md`, `--font-sans`, `--font-weight-medium`
|
|
7
|
+
* and render correctly.
|
|
8
|
+
* - Consumer's Tailwind utilities (`rounded-md`, `rounded-full`, `text-sm`)
|
|
9
|
+
* keep using Tailwind's own `@theme` defaults — Plex UI doesn't reset
|
|
10
|
+
* them with `--radius-*: initial`.
|
|
11
|
+
*
|
|
12
|
+
* If a consumer wants the Plex scale to also drive their Tailwind utilities,
|
|
13
|
+
* they import the standalone `@plexui/ui/styles/variables-tailwind-theme.css`
|
|
14
|
+
* file in addition to `@plexui/ui/css` (see /docs/installation).
|
|
15
|
+
*/
|
|
16
|
+
:root {
|
|
17
|
+
/* Radii */
|
|
18
|
+
--radius-2xs: 0.125rem; /* 2px */
|
|
19
|
+
--radius-xs: 0.25rem; /* 4px */
|
|
20
|
+
--radius-sm: 0.375rem; /* 6px */
|
|
21
|
+
--radius-md: 0.5rem; /* 8px */
|
|
22
|
+
--radius-lg: 0.625rem; /* 10px */
|
|
23
|
+
--radius-xl: 0.75rem; /* 12px */
|
|
24
|
+
--radius-2xl: 1rem; /* 16px */
|
|
25
|
+
--radius-3xl: 1.25rem; /* 20px */
|
|
26
|
+
--radius-4xl: 1.5rem; /* 24px */
|
|
27
|
+
--radius-full: 9999px;
|
|
28
|
+
|
|
29
|
+
/* Font stacks */
|
|
30
|
+
--font-sans: ui-sans-serif, -apple-system, system-ui, "Segoe UI", "Noto Sans", "Helvetica",
|
|
31
|
+
"Arial", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
|
|
32
|
+
--font-serif: ui-serif, Georgia, "Times New Roman", serif;
|
|
33
|
+
--font-mono: ui-monospace, "SFMono-Regular", "SF Mono", "Menlo", "Monaco", "Consolas",
|
|
34
|
+
"Liberation Mono", "DejaVu Sans Mono", "Courier New", monospace;
|
|
35
|
+
|
|
36
|
+
/* Font weights */
|
|
37
|
+
--font-weight-normal: 400;
|
|
38
|
+
--font-weight-medium: 500;
|
|
39
|
+
--font-weight-semibold: 600;
|
|
40
|
+
--font-weight-bold: 700;
|
|
41
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plexui/ui",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.3",
|
|
4
4
|
"description": "Modern design system for building high-quality applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
"./styles/variables-primitive.css": "./dist/es/styles/variables-primitive.css",
|
|
37
37
|
"./styles/variables-semantic.css": "./dist/es/styles/variables-semantic.css",
|
|
38
38
|
"./styles/variables-tailwind-theme.css": "./dist/es/styles/variables-tailwind-theme.css",
|
|
39
|
+
"./styles/variables-tokens-root.css": "./dist/es/styles/variables-tokens-root.css",
|
|
39
40
|
"./styles/variables-components.css": "./dist/es/styles/variables-components.css",
|
|
40
41
|
"./components/*": {
|
|
41
42
|
"types": "./dist/types/components/*/index.d.ts",
|