Skip to content

Commit c8fc7c0

Browse files
committed
Theme presets
1 parent 899f1d9 commit c8fc7c0

File tree

3 files changed

+66
-9
lines changed

3 files changed

+66
-9
lines changed

README.md

+11-8
Original file line numberDiff line numberDiff line change
@@ -156,24 +156,27 @@ TypeScript is configured and ready for use if desired, but is not required.
156156
157157
## Theme
158158
159-
This starter kit features a built-in light/dark mode toggle along with a collection of custom theme presets built using the powerful **PrimeVue V4** theming system. It leverages styled mode and custom design token values to create flexible and cohesive UI designs.
159+
This starter kit provides a collection of custom theme presets to choose from, built using the powerful **PrimeVue V4** theming system. It leverages styled mode and custom design token values to create flexible and cohesive UI designs.
160160
161-
### Prebuilt Theme Presets
161+
### Provided Theme Presets
162162
163-
The prebuilt theme presets are located in the `/src/theme` directory. Each preset offers a distinct visual style:
164-
165-
- **noir**
166-
A minimal, monochromatic theme that serves as the default style.
163+
The theme presets are located in the `/resources/js/theme` directory. Each preset offers a distinct visual style:
167164
168165
- **bootstrap**
169-
Emulates the familiar look and feel of [Bootstrap](https://getbootstrap.com/).
166+
Emulates the look and feel of [Bootstrap](https://getbootstrap.com/).
170167
171168
- **breeze**
172-
Captures the aesthetic of [Laravel Breeze](https://github.com/laravel/breeze).
169+
Captures the aesthetic of [Laravel Breeze](https://github.com/laravel/breeze). (R.I.P. :pray:)
173170
174171
- **enterprise**
175172
Provides a clean, no-nonsense corporate design.
176173
174+
- **noir**
175+
A minimal & clean monochromatic style that serves as the default theme.
176+
177+
- **warm**
178+
A boxy design with a warmer color pallette.
179+
177180
### Customizing Your Own Theme
178181
179182
Creating your own theme preset is simple. You can:

src/theme/enterprise-preset.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Preset from '@primeuix/themes/nora';
1+
import Preset from '@primeuix/themes/material';
22
import { definePreset } from '@primeuix/themes';
33

44
const customThemePreset = definePreset(Preset, {

src/theme/warm-preset.js

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
import Preset from '@primeuix/themes/nora';
2+
import { definePreset } from '@primeuix/themes';
3+
4+
const customThemePreset = definePreset(Preset, {
5+
semantic: {
6+
primary: {
7+
50: '{orange.50}',
8+
100: '{orange.100}',
9+
200: '{orange.200}',
10+
300: '{orange.300}',
11+
400: '{orange.400}',
12+
500: '{orange.500}',
13+
600: '{orange.600}',
14+
700: '{orange.700}',
15+
800: '{orange.800}',
16+
900: '{orange.900}',
17+
950: '{orange.950}',
18+
},
19+
colorScheme: {
20+
light: {
21+
surface: {
22+
50: '{stone.50}',
23+
100: '{stone.100}',
24+
200: '{stone.200}',
25+
300: '{stone.300}',
26+
400: '{stone.400}',
27+
500: '{stone.500}',
28+
600: '{stone.600}',
29+
700: '{stone.700}',
30+
800: '{stone.800}',
31+
900: '{stone.900}',
32+
950: '{stone.950}',
33+
},
34+
},
35+
dark: {
36+
surface: {
37+
50: '{stone.50}',
38+
100: '{stone.100}',
39+
200: '{stone.200}',
40+
300: '{stone.300}',
41+
400: '{stone.400}',
42+
500: '{stone.500}',
43+
600: '{stone.600}',
44+
700: '{stone.700}',
45+
800: '{stone.800}',
46+
900: '{stone.900}',
47+
950: '{stone.950}',
48+
},
49+
},
50+
},
51+
},
52+
});
53+
54+
export default customThemePreset;

0 commit comments

Comments
 (0)