Skip to content

Commit 779cc40

Browse files
committed
WIP: first experiment of fluffy
1 parent 1174068 commit 779cc40

File tree

53 files changed

+1809
-494
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+1809
-494
lines changed

.github/actions/test/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ runs:
4444
# storybookBuildDir: dist/storybook/headless
4545
# zip: true
4646

47-
# - name: Build Tailwind Theme
47+
# - name: Build the fluffy kit
4848
# shell: bash
49-
# run: npx nx build tailwind
49+
# run: npx nx build fluffy
5050

5151
# - name: Build
5252
# shell: bash

.vscode/settings.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
{
22
"git.pullTags": false,
3-
"conventionalCommits.scopes": ["tailwind"]
3+
"conventionalCommits.scopes": ["fluffy", "headless", "docs"],
4+
"tailwindCSS.experimental.classRegex": [
5+
["cva\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"],
6+
["cx\\(([^)]*)\\)", "(?:'|\"|`)([^']*)(?:'|\"|`)"]
7+
]
48
}

CODING_STANDARDS.md

Lines changed: 1 addition & 1 deletion
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { cva } from 'class-variance-authority';
2+
3+
export const button = cva(
4+
[
5+
'font-semibold no-underline gap-2 p-3 rounded-md',
6+
'border-base-200 text-base-content no-underline outline-base-content'
7+
],
8+
{
9+
variants: {
10+
intent: {
11+
primary: ['bg-red-500']
12+
}
13+
},
14+
defaultVariants: {
15+
intent: 'primary'
16+
}
17+
}
18+
);

apps/website/src/_state/app-state.type.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ export interface AppState {
22
mode: 'light' | 'dark';
33
isSidebarOpened: boolean;
44
featureFlags?: {
5-
showTailwind?: boolean;
5+
showFluffy?: boolean;
66
};
77
}

apps/website/src/_state/component-statuses.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ export interface ComponentsStatusesMap {
55
}
66

77
export type ComponentKitsStatuses = {
8-
tailwind: ComponentsStatusesMap;
8+
fluffy: ComponentsStatusesMap;
99
headless: ComponentsStatusesMap;
1010
};
1111

1212
export const statusByComponent: ComponentKitsStatuses = {
13-
tailwind: {
13+
fluffy: {
1414
Accordion: ComponentStatus.Planned,
1515
Alert: ComponentStatus.Planned,
1616
Badge: ComponentStatus.Planned,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export enum KitName {
22
HEADLESS = 'healdess',
3-
TAILWIND = 'tailwind',
3+
FLUFFY = 'fluffy',
44
NO_KIT = 'no-kit'
55
}

apps/website/src/root.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default component$(() => {
3232
mode: 'light',
3333
isSidebarOpened: false,
3434
featureFlags: {
35-
showTailwind: import.meta.env.DEV
35+
showFluffy: import.meta.env.DEV
3636
}
3737
});
3838

apps/website/src/routes/_components/header/header.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { version as headlessVersion } from '../../../../../../packages/kit-headl
55
// eslint-disable-next-line @nx/enforce-module-boundaries
66
import { KitName } from 'apps/website/src/_state/kit-name.type';
77
import { useRootStore } from 'apps/website/src/_state/use-root-store';
8-
import { version as tailwindVersion } from '../../../../../../packages/kit-tailwind/package.json';
8+
import { version as fluffyVersion } from '../../../../../../packages/kit-fluffy/package.json';
99
import { useSelectedKit } from '../../docs/use-selected-kit';
1010
import { CloseIcon } from '../icons/CloseIcon';
1111
import { GitHubIcon } from '../icons/GitHubIcon';
@@ -32,10 +32,10 @@ export default component$(
3232
version: headlessVersion
3333
};
3434
}
35-
if (selectedKitSig.value === KitName.TAILWIND) {
35+
if (selectedKitSig.value === KitName.FLUFFY) {
3636
return {
37-
name: 'Tailwind',
38-
version: tailwindVersion
37+
name: 'Fluffy',
38+
version: fluffyVersion
3939
};
4040
}
4141
});
@@ -73,8 +73,8 @@ export default component$(
7373
<nav class="hidden lg:flex gap-4">
7474
<a href="/about">About</a>
7575
<a href="/docs/headless/introduction">Headless Kit</a>
76-
{rootStore.featureFlags?.showTailwind && (
77-
<a href="/docs/tailwind/introduction">Tailwind Kit</a>
76+
{rootStore.featureFlags?.showFluffy && (
77+
<a href="/docs/fluffy/introduction">Fluffy (styled) Kit</a>
7878
)}
7979
<a href="https://discord.gg/PVWUUejrez" target="_blank">
8080
Community

0 commit comments

Comments
 (0)