Skip to content

Commit e366073

Browse files
committed
docs(fluffy): fix colors
1 parent c827d24 commit e366073

File tree

12 files changed

+94
-55
lines changed

12 files changed

+94
-55
lines changed

apps/website/src/colors.debug.css

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@
66
--color-primary: hsl(263, 56%, 52%);
77
--color-primary-foreground: hsl(0, 0%, 100%);
88

9-
--color-secondary: hsl(197, 78%, 48%);
9+
--color-secondary: hsl(202, 91%, 52%);
1010
--color-secondary-foreground: hsl(0, 0%, 100%);
1111

1212
--color-muted: hsl(210, 40%, 96%);
1313
--color-muted-foreground: hsl(263, 16%, 47%);
1414

15-
--color-accent: hsl(210, 40%, 96%);
15+
--color-accent: hsl(0, 0%, 83%);
1616
--color-accent-foreground: hsl(263, 47%, 11%);
1717

1818
--color-destructive: hsl(0, 84%, 60%);
19-
--color-destructive-foreground: hsl(263, 40%, 98%);
19+
--color-destructive-foreground: hsl(0, 0%, 100%);
2020

2121
--color-card: hsl(0, 0%, 100%);
2222
--color-card-foreground: hsl(263, 84%, 5%);
@@ -28,7 +28,7 @@
2828

2929
--color-input: hsl(263, 32%, 91%);
3030

31-
--color-ring: hsl(263, 84%, 25%);
31+
--color-ring: hsl(263, 18%, 61%);
3232

3333
--border-radius: 0.375rem;
3434
}
@@ -37,19 +37,19 @@
3737
--color-background: hsl(263, 84%, 5%);
3838
--color-foreground: hsl(263, 40%, 98%);
3939

40-
--color-primary: hsl(263, 56%, 52%);
40+
--color-primary: hsl(263, 70%, 58%);
4141
--color-primary-foreground: hsl(190 40% 98%);
4242

43-
--color-secondary: hsl(197 32.6% 17.5%);
43+
--color-secondary: hsl(202, 97%, 55%);
4444
--color-secondary-foreground: hsl(190 40% 98%);
4545

4646
--color-muted: hsl(218 32.6% 17.5%);
4747
--color-muted-foreground: hsl(263 20.2% 65.1%);
4848

49-
--color-accent: hsl(263 32.6% 17.5%);
50-
--color-accent-foreground: hsl(263 40% 98%);
49+
--color-accent: hsl(0, 0%, 26%);
50+
--color-accent-foreground: hsl(263 32.6% 17.5%);
5151

52-
--color-destructive: hsl(0 62.8% 30.6%);
52+
--color-destructive: hsl(0, 70%, 41%);
5353
--color-destructive-foreground: hsl(263 40% 98%);
5454

5555
--color-card: hsl(263 84% 4.9%);

apps/website/src/global.css

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@
1010
--color-primary: 263 56% 52%;
1111
--color-primary-foreground: 0 0% 100%;
1212

13-
--color-secondary: 197 78% 42%;
13+
--color-secondary: 202 91% 52%;
1414
--color-secondary-foreground: 0 0% 100%;
1515

1616
--color-muted: 210 40% 96%;
1717
--color-muted-foreground: 263 16% 47%;
1818

19-
--color-accent: 210 40% 96%;
19+
--color-accent: 0 0% 89%;
2020
--color-accent-foreground: 263 47% 11%;
2121

2222
--color-destructive: 0 84% 60%;
23-
--color-destructive-foreground: 263 40% 98%;
23+
--color-destructive-foreground: 263 0% 100%;
2424

2525
--color-card: 0 0% 100%;
2626
--color-card-foreground: 263 84% 5%;
@@ -32,18 +32,18 @@
3232

3333
--color-input: 263 32% 91%;
3434

35-
--color-ring: 263 84% 25%;
35+
--color-ring: 263 18% 61%;
3636

3737
--border-radius: 0.375rem;
3838

3939
--shiki-color-text: theme('colors.black');
40-
--shiki-token-constant: theme('colors.emerald.700');
40+
--shiki-token-constant: theme('colors.emerald.800');
4141
--shiki-token-string: theme('colors.emerald.700');
4242
--shiki-token-comment: theme('colors.zinc.700');
4343
--shiki-token-keyword: theme('colors.sky.600');
4444
--shiki-token-parameter: theme('colors.pink.700');
45-
--shiki-token-function: theme('colors.violet.800');
46-
--shiki-token-string-expression: theme('colors.emerald.600');
45+
--shiki-token-function: theme('colors.purple.700');
46+
--shiki-token-string-expression: theme('colors.emerald.700');
4747
--shiki-token-punctuation: theme('colors.zinc.700');
4848
}
4949

@@ -52,19 +52,19 @@
5252
--color-background: 222 47% 11%;
5353
--color-foreground: 263 40% 98%;
5454

55-
--color-primary: 263 56% 52%;
55+
--color-primary: 263 70% 58%;
5656
--color-primary-foreground: 190 40% 98%;
5757

58-
--color-secondary: 197 32.6% 17.5%;
58+
--color-secondary: 202 97% 55%;
5959
--color-secondary-foreground: 190 40% 98%;
6060

6161
--color-muted: 218 32.6% 17.5%;
6262
--color-muted-foreground: 263 20.2% 65.1%;
6363

64-
--color-accent: 263 32.6% 17.5%;
64+
--color-accent: 0 0% 23%;
6565
--color-accent-foreground: 263 40% 98%;
6666

67-
--color-destructive: 0 62.8% 30.6%;
67+
--color-destructive: 0 70% 40%;
6868
--color-destructive-foreground: 263 40% 98%;
6969

7070
--color-card: 263 84% 4.9%;

apps/website/src/routes/docs/_components/code-copy/code-copy.tsx

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { QwikIntrinsicElements, component$, useSignal } from '@builder.io/qwik';
22
import { stringifyClassList } from '@qwik-ui/cva';
3+
import { Button } from '@qwik-ui/fluffy';
34
import { OmitSignalClass } from '@qwik-ui/type-utils';
45
import copy from 'clipboard-copy';
56
import { twMerge } from 'tailwind-merge';
@@ -14,24 +15,21 @@ export const CodeCopy = component$(
1415

1516
return (
1617
<div>
17-
{!copied.value ? (
18-
<button
19-
{...restOfProps}
20-
title={copied ? 'Copied to Clipboard' : 'Copy to Clipboard'}
21-
class={twMerge(
22-
`mt-2 rounded p-3 hover:bg-slate-500/25`,
23-
stringifyClassList(outsideClass),
24-
)}
25-
onClick$={async () => {
26-
await copy(code);
27-
copied.value = true;
28-
}}
29-
>
30-
Copy
31-
</button>
32-
) : (
33-
<span class={twMerge(`m-3`, stringifyClassList(outsideClass))}>Copied!</span>
34-
)}
18+
<Button
19+
look="ghost"
20+
intent="basic"
21+
animation={!copied.value ? 'bouncy' : 'none'}
22+
{...restOfProps}
23+
title={copied.value ? 'Copied to Clipboard' : 'Copy to Clipboard'}
24+
class={twMerge(stringifyClassList(outsideClass))}
25+
onClick$={async () => {
26+
await copy(code);
27+
copied.value = true;
28+
}}
29+
>
30+
{!copied.value ? 'Copy' : 'Copied!'}
31+
</Button>
32+
)
3533
</div>
3634
);
3735
},

apps/website/src/routes/docs/_components/code-example/code-example-container.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Highlight } from '../highlight/highlight';
44
export const CodeExampleContainer = component$((props: { code: string }) => {
55
return (
66
<div
7-
class={`shadow-3xl shadow-light-low dark:shadow-dark-low mb-6 rounded-xl border-2 border-slate-500 dark:border-slate-400`}
7+
class={`shadow-3xl shadow-light-medium dark:shadow-dark-medium mb-6 rounded-xl border-2 border-slate-200 dark:border-slate-400`}
88
>
99
<Highlight code={props.code} />
1010
</div>

apps/website/src/routes/docs/_components/component-status-badge/component-status-badge.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export function getClassByStatus(status: ComponentStatus) {
1616
case ComponentStatus.Draft:
1717
return 'text-slate-200 bg-slate-700 dark:bg-slate-800 border-[1px] border-slate-400 shadow-dark-low tracking-wide dark:shadow-dark-low text-outline-draft';
1818
case ComponentStatus.Planned:
19-
return 'text-white bg-slate-300 border-[1px] border-slate-500 dark:border-slate-400 tracking-wide shadow-dark-low dark:shadow-dark-low text-outline-planned';
19+
return 'text-white bg-slate-400 dark:bg-slate-600 border-[1px] border-slate-500 dark:border-slate-400 tracking-wide shadow-dark-low dark:shadow-dark-low text-outline-planned dark:text-outline-none';
2020
default:
2121
return null;
2222
}

apps/website/src/routes/docs/_components/highlight/highlight.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ export const Highlight = component$(
3939
<div
4040
{...props}
4141
class={[
42-
'tab-size bg-background relative h-full max-w-full overflow-hidden overflow-x-auto rounded-xl p-12 text-sm dark:bg-slate-900',
42+
'tab-size relative h-full max-w-full overflow-hidden overflow-x-auto rounded-xl bg-slate-50 p-12 text-sm dark:bg-slate-800',
4343
props.class,
4444
]}
4545
>
4646
<div dangerouslySetInnerHTML={codeSig.value} />
47-
<CodeCopy class="absolute right-2 top-0" code={code} />
47+
<CodeCopy class="absolute right-2 top-2" code={code} />
4848
</div>
4949
);
5050
},

apps/website/src/routes/docs/_components/navigation-docs/navigation-docs.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export const DocsNavigation = component$(({ linksGroups }: DocsNavigationProps)
6060
return (
6161
<>
6262
<div class="px-6 pt-6">
63-
<h2 class="bg-qwikui-blue-400 dark:bg-qwikui-purple-500 shadow-dark-low dark:shadow-dark-high border-qwikui-blue-100 dark:border-qwikui-purple-100 text-outline-lg mb-4 rounded-lg border-2 px-4 py-1 text-3xl font-bold tracking-widest text-white lg:text-lg">
63+
<h2 class="bg-qwikui-blue-600 dark:bg-qwikui-purple-800 shadow-dark-low dark:shadow-dark-high border-qwikui-blue-100 dark:border-qwikui-purple-100 text-outline-lg mb-4 rounded-lg border-2 px-4 py-1 text-3xl font-bold text-white lg:text-lg">
6464
{group.name}
6565
</h2>
6666
<ul class="flex flex-col gap-2">

apps/website/src/routes/docs/_components/preview-code-example/preview-code-example-vertical.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
import { Slot, component$ } from '@builder.io/qwik';
2-
import { PreviewCodeExampleProps } from './preview-code-example-props.type';
32
import { Highlight } from '../highlight/highlight';
3+
import { PreviewCodeExampleProps } from './preview-code-example-props.type';
44

55
export const PreviewCodeExampleVertical = component$((props: PreviewCodeExampleProps) => {
66
return (
7-
<div class="dark:border-qwikui-purple-200 shadow-light-medium dark:shadow-dark-medium flex w-full flex-col rounded-b-xl rounded-t-xl border-[1.5px] border-solid">
7+
<div class="dark:border-qwikui-purple-200 shadow-light-medium dark:shadow-dark-medium flex w-full flex-col rounded-b-xl rounded-t-xl border-[1.5px] border-solid border-slate-200">
88
<h3 class=" flex rounded-t-xl text-white"></h3>
9-
<section class="p-4">
9+
<section class="rounded-t-xl bg-slate-50 p-4 dark:bg-slate-800">
1010
<Slot name="actualComponent" />
1111
</section>
12-
<h3 class="dark:border-qwikui-purple-200 bg-qwikui-blue-500 dark:bg-qwikui-purple-600 text-outline-lg selected border-y-[1.5px] px-4 py-2 text-white">
12+
<h3 class="dark:border-qwikui-purple-200 bg-qwikui-blue-600 dark:bg-qwikui-purple-800 text-outline-lg selected border-y-[1.5px] px-4 py-2 font-bold text-white">
1313
Code
1414
</h3>
15-
<aside class="border-qwikui-blue-300 dark:border-qwikui-purple-200 rounded-b-xl border-[1.5px] border-solid">
15+
<aside class="rounded-b-xl border-[1.5px] border-solid">
1616
<Highlight code={props.code} class="rounded" />
1717
</aside>
1818
</div>

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
import { JSXNode, component$ } from '@builder.io/qwik';
22
// eslint-disable-next-line @nx/enforce-module-boundaries
33
import fluffyButtonCode from '../../../../../../../../packages/kit-fluffy/src/components/button/button?raw';
4+
import { CodeExampleContainer } from '../../../_components/code-example/code-example-container';
45
import { Highlight } from '../../../_components/highlight/highlight';
56
import { PreviewCodeExampleVertical } from '../../../_components/preview-code-example/preview-code-example-vertical';
67
import { ShowExampleProps } from '../../../headless/(components)/combobox/examples';
78
import AnimationExampleComponent from './examples/animation';
8-
import IconExampleComponent from './examples/icon';
99
import animationExamplesCode from './examples/animation?raw';
10+
import CombinationExampleComponent from './examples/combination';
11+
import combinationExamplesCode from './examples/combination?raw';
12+
import IconExampleComponent from './examples/icon';
1013
import iconExamplesCode from './examples/icon?raw';
1114
import IntentExampleComponent from './examples/intent';
1215
import intentExamplesCode from './examples/intent?raw';
@@ -18,7 +21,6 @@ import SizeExampleComponent from './examples/size';
1821
import sizeExamplesCode from './examples/size?raw';
1922
import StateExampleComponent from './examples/state';
2023
import stateExamplesCode from './examples/state?raw';
21-
import { CodeExampleContainer } from '../../../_components/code-example/code-example-container';
2224
export type Example = {
2325
component: JSXNode;
2426
code: string;
@@ -54,6 +56,10 @@ export const examples: Record<string, Example> = {
5456
component: <IconExampleComponent />,
5557
code: iconExamplesCode,
5658
},
59+
combination: {
60+
component: <CombinationExampleComponent />,
61+
code: combinationExamplesCode,
62+
},
5763
};
5864

5965
export const InstallExample = component$(() => (
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import { component$ } from '@builder.io/qwik';
2+
import { Button } from '@qwik-ui/fluffy';
3+
4+
export default component$(() => {
5+
return (
6+
<section class="flex items-center justify-center gap-3">
7+
<Button look="ghost" intent="secondary">
8+
Ghost
9+
</Button>
10+
<Button look="outline" intent="secondary">
11+
Outline
12+
</Button>
13+
<Button look="ghost" intent="danger">
14+
Ghost
15+
</Button>
16+
<Button look="outline" intent="danger">
17+
Outline
18+
</Button>
19+
<Button look="ghost" intent="basic">
20+
Ghost
21+
</Button>
22+
<Button look="outline" intent="basic">
23+
Outline
24+
</Button>
25+
</section>
26+
);
27+
});

0 commit comments

Comments
 (0)