Skip to content

Commit

Permalink
update [palette] : export Palette type and palettes array
Browse files Browse the repository at this point in the history
  • Loading branch information
Meschacirung committed Jun 14, 2024
1 parent 5069707 commit cf5bc5c
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/plugins/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tailus/themer-plugins",
"version": "0.1.1",
"version": "0.1.2",
"description": "TailwindCSS Plugins for Tailus UI Themer",
"exports": {
".": {
Expand Down
3 changes: 2 additions & 1 deletion packages/plugins/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export { palette } from "./palette";
export { palette, palettesArray } from "./palette";
export { animations } from "./animations";
export { components } from "./components";
export { shade } from "./shade";
export { rounded } from "./rounded";
export { palettes, grays, defaultFeedbackColors } from "./palettes";
export { type Palette } from "./types";
12 changes: 12 additions & 0 deletions packages/plugins/src/palette.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
import plugin from "tailwindcss/plugin";

export const palettesArray = [
"trust",
"oz",
"mystery",
"romance",
"passion",
"energy",
"spring",
"nature",
"winter",
];

const defaultFeedbackColors = {
"--colors-warning-50": "var(--colors-yellow-50)",
"--colors-warning-100": "var(--colors-yellow-100)",
Expand Down
12 changes: 12 additions & 0 deletions packages/plugins/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,15 @@ export type Shadows = {
"2xl": string;
none: string;
};

export type Palette =
| "trust"
| "oz"
| "passion"
| "energy"
| "romance"
| "nature"
| "spring"
| "winter"
| "mystery"
| "tls";

0 comments on commit cf5bc5c

Please sign in to comment.