Skip to content

Commit 9d86b2e

Browse files
committed
WIP: fluffy improvements
1 parent 733fde6 commit 9d86b2e

File tree

4 files changed

+45
-13
lines changed

4 files changed

+45
-13
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,30 +47,30 @@ export default component$(
4747
return (
4848
<header
4949
class={[
50-
`fixed top-0 w-full h-20 md:h-20 z-20 md:bg-[var(--color-bg)] flex gap-8 p-4 items-center`,
51-
`ease-in-out duration-300`,
50+
`fixed top-0 z-20 flex h-20 w-full items-center gap-8 p-4 md:h-20 md:bg-[var(--color-bg)]`,
51+
`duration-300 ease-in-out`,
5252
rootStore.isSidebarOpened
5353
? 'bg-blue-200 brightness-75 dark:bg-indigo-900'
5454
: 'bg-[var(--color-bg)]',
5555
showBottomBorder ? `border-b-[1px] border-slate-300 dark:border-slate-600` : ``
5656
]}
5757
>
58-
<section class="flex flex-col md:flex-row gap-1 md:gap-8 mr-auto">
58+
<section class="mr-auto flex flex-col gap-1 md:flex-row md:gap-8">
5959
<a href="/" class="lg:ml-8">
6060
<Logo />
6161
</a>
6262

6363
{showVersion && (
6464
<div data-tip="Qwik-UI Version" class="mr-auto">
65-
<div class="flex flex-row gap-1 ml-2 md:mt-1 md:flex-col text-xs md:text-sm">
65+
<div class="ml-2 flex flex-row gap-1 text-xs md:mt-1 md:flex-col md:text-sm">
6666
<span> {kitSignal.value?.name} Kit </span>
6767
<span> v.{kitSignal.value?.version} </span>
6868
</div>
6969
</div>
7070
)}
7171
</section>
7272

73-
<nav class="hidden lg:flex gap-4">
73+
<nav class="hidden gap-4 lg:flex">
7474
<a href="/about">About</a>
7575
<a href="/docs/headless/introduction">Headless Kit</a>
7676
{rootStore.featureFlags?.showFluffy && (

apps/website/src/routes/docs/fluffy/(components)/button/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default component$(() => {
1818
<h2>Fluffy Example</h2>
1919

2020
<div>
21-
<Button intent="default">I'm from Fluffy</Button>
21+
<Button>I'm from Fluffy</Button>
2222
</div>
2323

2424
<h2>Basic Example</h2>

apps/website/tailwind.config.cjs

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,33 @@ module.exports = {
2222
'depth-dark': 'var(--dark-shadow-elevation-medium)'
2323
},
2424
colors: {
25+
'qwik-blue': {
26+
50: 'hsl(204, 100%, 96%)',
27+
100: 'hsl(203, 100%, 94%)',
28+
200: 'hsl(199, 97%, 86%)',
29+
300: 'hsl(198, 100%, 74%)',
30+
400: 'hsl(197, 97%, 60%)',
31+
500: 'hsl(197, 93%, 53%)',
32+
600: 'hsl(199, 100%, 40%)',
33+
700: 'hsl(200, 100%, 32%)',
34+
800: 'hsl(200, 94%, 25%)',
35+
900: 'hsl(201, 84%, 17%)',
36+
950: 'hsl(204, 83%, 9%)'
37+
},
38+
'qwik-purple': {
39+
50: 'hsl(260, 100%, 90%)',
40+
100: 'hsl(262, 83%, 91%)',
41+
200: 'hsl(259, 85%, 92%)',
42+
300: 'hsl(261, 87%, 85%)',
43+
400: 'hsl(263, 84%, 73%)',
44+
500: 'hsl(266, 83%, 66%)',
45+
600: 'hsl(270, 77%, 58%)',
46+
700: 'hsl(272, 64%, 50%)',
47+
800: 'hsl(271, 64%, 42%)',
48+
900: 'hsl(272, 62%, 30%)',
49+
950: 'hsl(269, 67%, 13%)'
50+
},
51+
2552
primary: {
2653
DEFAULT: 'var(--color-primary)',
2754
forground: 'var(--color-primary)',

packages/kit-fluffy/src/components/button/button.tsx

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,23 @@ import { Slot, component$ } from '@builder.io/qwik';
4646
import { cva, type AddVariantPropsTo } from '@qwik-ui/cva';
4747

4848
export const buttonVariants = cva(
49-
'inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50',
49+
`inline-flex items-center justify-center rounded-md
50+
text-sm font-medium ring-offset-background transition-colors
51+
focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring
52+
focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50`,
5053
{
5154
variants: {
5255
intent: {
53-
default: 'bg-primary text-primary-foreground hover:bg-primary/90',
54-
destructive: 'bg-destructive text-destructive-foreground hover:bg-destructive/90',
55-
outline:
56-
'border border-input bg-background hover:bg-accent hover:text-accent-foreground',
56+
primary: 'bg-primary text-primary-foreground hover:bg-primary/90',
5757
secondary: 'bg-secondary text-secondary-foreground hover:bg-secondary/80',
58-
ghost: 'hover:bg-accent hover:text-accent-foreground',
58+
destructive: 'bg-destructive text-destructive-foreground hover:bg-destructive/90',
5959
link: 'text-primary underline-offset-4 hover:underline'
6060
},
61+
look: {
62+
ghost: 'hover:bg-accent hover:text-accent-foreground',
63+
outline:
64+
'border border-input bg-background hover:bg-accent hover:text-accent-foreground'
65+
},
6166
size: {
6267
default: 'h-10 px-4 py-2',
6368
sm: 'h-9 rounded-md px-3',
@@ -66,7 +71,7 @@ export const buttonVariants = cva(
6671
}
6772
},
6873
defaultVariants: {
69-
intent: 'default',
74+
intent: 'primary',
7075
size: 'default'
7176
}
7277
}

0 commit comments

Comments
 (0)