@seaguntech/design-system 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 ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 SeagunTech
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,34 @@
1
+ # @seaguntech/design-system
2
+
3
+ Tailwind CSS v4 token package for Seaguntech UI.
4
+
5
+ ## What this package owns
6
+
7
+ - Design tokens (`@theme`) and semantic color variables.
8
+ - Light and dark theme variable assignments.
9
+ - Global base styles (font, focus ring, base surface/foreground behavior).
10
+ - Shared PostCSS config export for Tailwind v4.
11
+
12
+ This package is the single source of truth for design tokens and theme variables.
13
+
14
+ ## Recommended usage
15
+
16
+ If you use `@seaguntech/ui` components, import the UI stylesheet only:
17
+
18
+ ```css
19
+ @import '@seaguntech/ui/styles.css';
20
+ ```
21
+
22
+ `@seaguntech/ui/styles.css` already imports `@seaguntech/design-system`.
23
+
24
+ If you need tokens/theme without component styles, import design-system directly:
25
+
26
+ ```css
27
+ @import '@seaguntech/design-system';
28
+ ```
29
+
30
+ ## Best practices
31
+
32
+ - Do not redefine core theme tokens in app-level `globals.css`.
33
+ - Prefer semantic tokens from this package (`--color-background`, `--color-foreground`, etc.).
34
+ - Keep theme overrides centralized in `theme-light.css` and `theme-dark.css`.
@@ -0,0 +1,59 @@
1
+ @import 'tailwindcss';
2
+
3
+ @theme {
4
+ --color-*: initial;
5
+ --font-*: initial;
6
+
7
+ --color-neutral-50: oklch(0.99 0.002 250);
8
+ --color-neutral-100: oklch(0.97 0.004 250);
9
+ --color-neutral-200: oklch(0.93 0.008 250);
10
+ --color-neutral-300: oklch(0.87 0.012 250);
11
+ --color-neutral-400: oklch(0.73 0.016 250);
12
+ --color-neutral-500: oklch(0.58 0.02 250);
13
+ --color-neutral-700: oklch(0.38 0.018 250);
14
+ --color-neutral-900: oklch(0.2 0.012 250);
15
+ --color-neutral-950: oklch(0.14 0.008 250);
16
+
17
+ --color-brand-300: oklch(0.78 0.12 250);
18
+ --color-brand-400: oklch(0.68 0.16 250);
19
+ --color-brand-500: oklch(0.58 0.2 250);
20
+ --color-brand-600: oklch(0.5 0.2 250);
21
+ --color-brand-700: oklch(0.42 0.18 250);
22
+ --color-brand-800: oklch(0.35 0.15 250);
23
+
24
+ --color-error-400: oklch(0.68 0.2 25);
25
+ --color-error-500: oklch(0.55 0.22 25);
26
+
27
+ --color-background: oklch(1 0 0);
28
+ --color-foreground: var(--color-neutral-950);
29
+ --color-card: oklch(1 0 0);
30
+ --color-card-foreground: var(--color-neutral-950);
31
+ --color-popover: oklch(1 0 0);
32
+ --color-popover-foreground: var(--color-neutral-950);
33
+ --color-primary: var(--color-brand-600);
34
+ --color-primary-foreground: oklch(0.99 0 0);
35
+ --color-secondary: var(--color-neutral-100);
36
+ --color-secondary-foreground: var(--color-neutral-950);
37
+ --color-muted: var(--color-neutral-100);
38
+ --color-muted-foreground: var(--color-neutral-500);
39
+ --color-accent: var(--color-neutral-100);
40
+ --color-accent-foreground: var(--color-neutral-950);
41
+ --color-destructive: var(--color-error-500);
42
+ --color-destructive-foreground: oklch(0.99 0 0);
43
+ --color-border: var(--color-neutral-200);
44
+ --color-input: var(--color-neutral-200);
45
+ --color-ring: var(--color-brand-600);
46
+
47
+ --font-sans:
48
+ 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
49
+ --font-mono:
50
+ 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
51
+ monospace;
52
+
53
+ --radius-sm: 0.25rem;
54
+ --radius-md: 0.375rem;
55
+ --radius-lg: 0.5rem;
56
+ --radius-xl: 0.75rem;
57
+ }
58
+
59
+ @custom-variant dark (&:where(.dark, .dark *));
package/globals.css ADDED
@@ -0,0 +1,39 @@
1
+ @import 'tailwindcss';
2
+ @import './design-tokens.css';
3
+ @import './theme-light.css';
4
+ @import './theme-dark.css';
5
+
6
+ @layer base {
7
+ * {
8
+ border-color: var(--color-border);
9
+ }
10
+
11
+ html {
12
+ font-family: var(--font-sans);
13
+ }
14
+
15
+ body {
16
+ margin: 0;
17
+ background: var(--color-background);
18
+ color: var(--color-foreground);
19
+ -webkit-font-smoothing: antialiased;
20
+ -moz-osx-font-smoothing: grayscale;
21
+ }
22
+
23
+ :focus-visible {
24
+ outline: 2px solid var(--color-ring);
25
+ outline-offset: 2px;
26
+ }
27
+ }
28
+
29
+ @utility text-fg-primary {
30
+ color: var(--color-foreground);
31
+ }
32
+
33
+ @utility text-fg-muted {
34
+ color: var(--color-muted-foreground);
35
+ }
36
+
37
+ @utility bg-surface {
38
+ background-color: var(--color-card);
39
+ }
package/package.json ADDED
@@ -0,0 +1,49 @@
1
+ {
2
+ "name": "@seaguntech/design-system",
3
+ "private": false,
4
+ "version": "0.1.0",
5
+ "type": "module",
6
+ "publishConfig": {
7
+ "access": "public"
8
+ },
9
+ "description": "Tailwind CSS v4 design tokens for Seaguntech UI",
10
+ "exports": {
11
+ ".": "./globals.css",
12
+ "./globals": "./globals.css",
13
+ "./design-tokens": "./design-tokens.css",
14
+ "./theme-light": "./theme-light.css",
15
+ "./theme-dark": "./theme-dark.css",
16
+ "./postcss-config": "./postcss-config.js"
17
+ },
18
+ "files": [
19
+ "*.css",
20
+ "postcss-config.js"
21
+ ],
22
+ "sideEffects": [
23
+ "**/*.css"
24
+ ],
25
+ "dependencies": {
26
+ "@tailwindcss/postcss": "^4.1.16",
27
+ "@types/node": "^22.15.3",
28
+ "eslint": "^9.39.1",
29
+ "postcss": "^8.5.6",
30
+ "prettier": "^3.7.4",
31
+ "tailwindcss": "^4.0.0",
32
+ "typescript": "^5.9.3",
33
+ "@seaguntech/eslint-config": "0.0.0",
34
+ "@seaguntech/prettier-config": "0.0.0"
35
+ },
36
+ "prettier": "@seaguntech/prettier-config/base",
37
+ "scripts": {
38
+ "build": "echo 'design-system ready'",
39
+ "lint": "echo 'no lint yet'",
40
+ "lint:fix": "echo 'no lint yet'",
41
+ "format": "prettier --check .",
42
+ "format:fix": "prettier --write .",
43
+ "check-types": "echo 'no types'",
44
+ "test": "echo 'no tests'",
45
+ "test:watch": "echo 'no tests'",
46
+ "test:coverage": "echo 'no tests'",
47
+ "clean": "rm -rf dist coverage"
48
+ }
49
+ }
@@ -0,0 +1,5 @@
1
+ import tailwindcss from '@tailwindcss/postcss';
2
+
3
+ export default {
4
+ plugins: [tailwindcss()],
5
+ };
package/theme-dark.css ADDED
@@ -0,0 +1,21 @@
1
+ .dark {
2
+ --color-background: oklch(0.14 0.008 250);
3
+ --color-foreground: oklch(0.99 0 0);
4
+ --color-card: oklch(0.2 0.012 250);
5
+ --color-card-foreground: oklch(0.99 0 0);
6
+ --color-popover: oklch(0.2 0.012 250);
7
+ --color-popover-foreground: oklch(0.99 0 0);
8
+ --color-primary: var(--color-brand-400);
9
+ --color-primary-foreground: oklch(0.14 0.008 250);
10
+ --color-secondary: oklch(0.28 0.015 250);
11
+ --color-secondary-foreground: oklch(0.99 0 0);
12
+ --color-muted: oklch(0.28 0.015 250);
13
+ --color-muted-foreground: oklch(0.73 0.016 250);
14
+ --color-accent: oklch(0.28 0.015 250);
15
+ --color-accent-foreground: oklch(0.99 0 0);
16
+ --color-destructive: var(--color-error-400);
17
+ --color-destructive-foreground: oklch(0.99 0 0);
18
+ --color-border: oklch(0.28 0.015 250);
19
+ --color-input: oklch(0.28 0.015 250);
20
+ --color-ring: var(--color-brand-400);
21
+ }
@@ -0,0 +1,21 @@
1
+ :root {
2
+ --color-background: oklch(1 0 0);
3
+ --color-foreground: oklch(0.14 0.008 250);
4
+ --color-card: oklch(1 0 0);
5
+ --color-card-foreground: oklch(0.14 0.008 250);
6
+ --color-popover: oklch(1 0 0);
7
+ --color-popover-foreground: oklch(0.14 0.008 250);
8
+ --color-primary: var(--color-brand-600);
9
+ --color-primary-foreground: oklch(0.99 0 0);
10
+ --color-secondary: oklch(0.97 0.004 250);
11
+ --color-secondary-foreground: oklch(0.14 0.008 250);
12
+ --color-muted: oklch(0.97 0.004 250);
13
+ --color-muted-foreground: oklch(0.58 0.02 250);
14
+ --color-accent: oklch(0.97 0.004 250);
15
+ --color-accent-foreground: oklch(0.14 0.008 250);
16
+ --color-destructive: var(--color-error-500);
17
+ --color-destructive-foreground: oklch(0.99 0 0);
18
+ --color-border: oklch(0.93 0.008 250);
19
+ --color-input: oklch(0.93 0.008 250);
20
+ --color-ring: var(--color-brand-600);
21
+ }