You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat(theming): implement custom theme system with teal theme
* fix(select): add missing underline on items hover and focus
* fix(sidebar): add missing underline on items hover and focus
* docs: update readme
* chore: bump version to 0.2.0
A React component library implementing the Logos Design System (LSD) using shadcn / Radix UI and Tailwind CSS.
4
-
5
-
## Overview
6
-
7
-
@nipsys/shadcn-lsd follows a minimalist design system. The library offers a comprehensive set of UI components with built-in light and dark theme support.
3
+
A React component library implementing the Logos Design System (LSD). Built with Radix UI primitives and Tailwind CSS, following the shadcn/ui patterns.
8
4
9
5
## Installation
10
6
11
7
```bash
12
-
npm install @nipsys/shadcn-lsd
13
-
# or
14
8
pnpm add @nipsys/shadcn-lsd
15
9
```
16
10
17
-
## Quick Start
11
+
## Usage
12
+
13
+
### Import the CSS
14
+
15
+
First, import the stylesheet in your application entry point:
<h1className="text-2xl mb-4">Welcome to LSD React</h1>
28
-
<Inputplaceholder="Enter your name"className="mb-4" />
29
-
<Button>Submit</Button>
30
-
</Card>
31
-
</div>
28
+
<Dialog>
29
+
<DialogTrigger>Open</DialogTrigger>
30
+
<DialogContent>
31
+
<p>Dialog content here</p>
32
+
</DialogContent>
33
+
</Dialog>
32
34
);
33
35
}
34
36
```
35
37
36
-
## Theming
38
+
###Theming
37
39
38
-
LSD React uses CSS custom properties for theming. The theme can be switched by adding/removing the `.dark` class on the root element (or any container).
40
+
The library supports light and dark themes out of the box. Add the `dark` class to your root element to enable dark mode:
39
41
40
-
### Light Theme (Default)
42
+
```html
43
+
<htmlclass="dark">
44
+
<!-- your app -->
45
+
</html>
46
+
```
41
47
42
-
```css
43
-
:root {
44
-
--lsd-text: 000; /* Black */
45
-
--lsd-border: 000; /* Black */
46
-
--lsd-surface-primary: 255255255; /* White */
47
-
--lsd-surface-secondary: 255255255; /* White */
48
-
}
48
+
### Theme Variants
49
+
50
+
A teal theme variant is also available:
51
+
52
+
```html
53
+
<htmlclass="theme-teal">
54
+
<!-- light teal theme -->
55
+
</html>
56
+
57
+
<htmlclass="dark theme-teal">
58
+
<!-- dark teal theme -->
59
+
</html>
49
60
```
50
61
51
-
### Dark Theme
62
+
### CSS Variables
63
+
64
+
The design system uses CSS custom properties that you can override:
52
65
53
66
```css
54
-
.dark {
55
-
--lsd-text: 255255255; /* White */
56
-
--lsd-border: 255255255; /* White */
57
-
--lsd-surface-primary: 000; /* Black */
58
-
--lsd-surface-secondary: 000; /* Black */
67
+
:root {
68
+
--lsd-primary: #000000;
69
+
--lsd-text-primary: #000000;
70
+
--lsd-text-secondary: #808080;
71
+
--lsd-border: #000000;
72
+
--lsd-surface: #ffffff;
73
+
--lsd-destructive: #b91c1c;
74
+
--lsd-success: #15803d;
75
+
--lsd-warning: #f59e0b;
76
+
--lsd-info: #2563eb;
59
77
}
60
78
```
61
79
62
80
## Components
63
81
64
-
LSD React provides a comprehensive set of UI components:
65
-
66
-
### Form Components
67
-
-**Input**: Text input with size variants
68
-
-**Autocomplete**: Searchable dropdown with async support
0 commit comments