Skip to content

Commit

Permalink
Revamp colors
Browse files Browse the repository at this point in the history
  • Loading branch information
gtluszcz committed Sep 29, 2024
1 parent d87edf3 commit 1ff31bb
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 23 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React + TS</title>
</head>
<body>
<body class="bg-[#F2F2F7]">
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
Expand Down
18 changes: 9 additions & 9 deletions src/components/Declaration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ type Props = {
export function Declaration({ show, model, setModel }: Props) {
return (
<motion.div
className="overflow-hidden bg-gray-50 rounded-md"
className="overflow-hidden bg-white rounded-md"
initial={false}
variants={{
show: { width: '32rem' },
Expand Down Expand Up @@ -95,11 +95,11 @@ function DeclarationContent({ model, setModel }: { model: Model; setModel: Dispa

return (
<div className="p-6 h-full overflow-y-auto">
<h2 className="text-2xl font-semibold">Deklaracja PCC-3</h2>
<h2 className="text-2xl font-semibold text-gov-blue">Deklaracja PCC-3</h2>

<Accordion type="single" defaultValue="sekcja_a" collapsible className="mt-4">
<AccordionItem value="sekcja_a">
<AccordionTrigger className="text-left">A. Okres, miejsce i cel składania deklaracji</AccordionTrigger>
<AccordionTrigger className="text-left font-bold">A. Okres, miejsce i cel składania deklaracji</AccordionTrigger>
<AccordionContent className="pb-6">
<DeclarationInput
label="Data dokonania czynności"
Expand All @@ -125,7 +125,7 @@ function DeclarationContent({ model, setModel }: { model: Model; setModel: Dispa
</AccordionContent>
</AccordionItem>
<AccordionItem value="sekcja_b">
<AccordionTrigger className="text-left">B. Dane podatnika</AccordionTrigger>
<AccordionTrigger className="text-left font-bold">B. Dane podatnika</AccordionTrigger>
<AccordionContent className="pb-6">
<DeclarationInputWrapper label="Podmiot składający deklarację">
<Select
Expand Down Expand Up @@ -309,7 +309,7 @@ function DeclarationContent({ model, setModel }: { model: Model; setModel: Dispa
</AccordionContent>
</AccordionItem>
<AccordionItem value="sekcja_c">
<AccordionTrigger className="text-left">C. Przedmiot opodatkowania</AccordionTrigger>
<AccordionTrigger className="text-left font-bold">C. Przedmiot opodatkowania</AccordionTrigger>
<AccordionContent className="pb-6">
<DeclarationInputWrapper label="Podmiot składający deklarację">
<Select
Expand Down Expand Up @@ -370,7 +370,7 @@ function DeclarationContent({ model, setModel }: { model: Model; setModel: Dispa
</AccordionContent>
</AccordionItem>
<AccordionItem value="sekcja_d">
<AccordionTrigger className="text-left">D. Obliczenie podatku od czynności cywilnoprawnych</AccordionTrigger>
<AccordionTrigger className="text-left font-bold">D. Obliczenie podatku od czynności cywilnoprawnych</AccordionTrigger>
<AccordionContent className="pb-6">
<DeclarationInputWrapper label="Rodzaj czynności cywilnoprawnej">
<Select value={rodzajCzynnosci} onValueChange={(value) => setRodzajCzynnosci(value)}>
Expand Down Expand Up @@ -432,7 +432,7 @@ function DeclarationContent({ model, setModel }: { model: Model; setModel: Dispa
</AccordionContent>
</AccordionItem>
<AccordionItem value="sekcja_e">
<AccordionTrigger className="text-left">E. Obliczenie podatku od umowy spółki</AccordionTrigger>
<AccordionTrigger className="text-left font-bold">E. Obliczenie podatku od umowy spółki</AccordionTrigger>
<AccordionContent className="pb-6">
<DeclarationInputWrapper label="Typ spółki">
<Select
Expand All @@ -451,7 +451,7 @@ function DeclarationContent({ model, setModel }: { model: Model; setModel: Dispa
</AccordionContent>
</AccordionItem>
<AccordionItem value="sekcja_f">
<AccordionTrigger className="text-left">F. Podatek do zapłaty</AccordionTrigger>
<AccordionTrigger className="text-left font-bold">F. Podatek do zapłaty</AccordionTrigger>
<AccordionContent className="pb-6">
<DeclarationInputWrapper label="Kwota podatku do zapłaty">
<Input
Expand All @@ -464,7 +464,7 @@ function DeclarationContent({ model, setModel }: { model: Model; setModel: Dispa
</AccordionContent>
</AccordionItem>
<AccordionItem value="sekcja_g">
<AccordionTrigger className="text-left">G. Informacje dodatkowe </AccordionTrigger>
<AccordionTrigger className="text-left font-bold">G. Informacje dodatkowe </AccordionTrigger>
<AccordionContent className="pb-6">
<DeclarationInput
label="Województwo"
Expand Down
2 changes: 1 addition & 1 deletion src/components/DeclarationInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export function DeclarationInput({ label, value, setValue }: Props) {

return (
<DeclarationInputWrapper label={label}>
<Input placeholder="" value={value} onChange={onChange} className="bg-white" />
<Input placeholder="" value={value} onChange={onChange} className="bg-white " />
</DeclarationInputWrapper>
)
}
6 changes: 3 additions & 3 deletions src/components/OurChatInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function OurChatInput({
return (
<form
onSubmit={onSubmit}
className="relative rounded-lg border bg-background focus-within:ring-1 focus-within:ring-ring"
className="relative rounded-lg bg-background focus-within:ring-1 focus-within:ring-ring"
>
<ChatInput
ref={inputRef}
Expand All @@ -43,7 +43,7 @@ export function OurChatInput({
placeholder="Zadaj pytanie..."
className="min-h-12 resize-none rounded-lg bg-background border-0 p-3 shadow-none focus-visible:ring-0"
/>
<div className="flex items-center p-3 pt-0">
<div className="flex items-center p-3 pt-0 text-gov-blue">
<RecordButton
onSuccess={(text) => {
setInput((prev) => prev + text.trim())
Expand All @@ -58,7 +58,7 @@ export function OurChatInput({
}}
/>

<Button disabled={disabled} type="submit" size="sm" className="ml-auto gap-1.5">
<Button disabled={disabled} type="submit" size="sm" className="ml-auto gap-1.5 bg-gov-blue text-white">
Wyślij wiadomość
<CornerDownLeft className="size-3.5" />
</Button>
Expand Down
4 changes: 2 additions & 2 deletions src/components/ui/accordion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const AccordionItem = React.forwardRef<
>(({ className, ...props }, ref) => (
<AccordionPrimitive.Item
ref={ref}
className={cn("border-b", className)}
className={cn("border-b border-b-gov-blue", className)}
{...props}
/>
))
Expand All @@ -32,7 +32,7 @@ const AccordionTrigger = React.forwardRef<
{...props}
>
{children}
<ChevronDownIcon className="h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200" />
<ChevronDownIcon className="h-4 w-4 shrink-0 text-gov-blue transition-transform duration-200" />
</AccordionPrimitive.Trigger>
</AccordionPrimitive.Header>
))
Expand Down
4 changes: 2 additions & 2 deletions src/components/ui/chat/chat-bubble.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ const chatBubbleMessageVariants = cva("p-4", {
variants: {
variant: {
received:
"bg-secondary text-secondary-foreground rounded-r-lg rounded-tl-lg",
sent: "bg-primary text-primary-foreground rounded-l-lg rounded-tr-lg",
"bg-white text-secondary-foreground rounded-r-lg rounded-tl-lg",
sent: "bg-gov-blue text-primary-foreground rounded-l-lg rounded-tr-lg",
},
layout: {
default: "",
Expand Down
8 changes: 4 additions & 4 deletions src/components/ui/select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const SelectTrigger = React.forwardRef<
>
{children}
<SelectPrimitive.Icon asChild>
<CaretSortIcon className="h-4 w-4 opacity-50" />
<CaretSortIcon className="h-4 w-4 text-gov-blue" />
</SelectPrimitive.Icon>
</SelectPrimitive.Trigger>
))
Expand All @@ -47,7 +47,7 @@ const SelectScrollUpButton = React.forwardRef<
)}
{...props}
>
<ChevronUpIcon />
<ChevronUpIcon className="text-gov-blue"/>
</SelectPrimitive.ScrollUpButton>
))
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName
Expand All @@ -64,7 +64,7 @@ const SelectScrollDownButton = React.forwardRef<
)}
{...props}
>
<ChevronDownIcon />
<ChevronDownIcon className="text-gov-blue"/>
</SelectPrimitive.ScrollDownButton>
))
SelectScrollDownButton.displayName =
Expand Down Expand Up @@ -128,7 +128,7 @@ const SelectItem = React.forwardRef<
>
<span className="absolute right-2 flex h-3.5 w-3.5 items-center justify-center">
<SelectPrimitive.ItemIndicator>
<CheckIcon className="h-4 w-4" />
<CheckIcon className="h-4 w-4 text-gov-blue" />
</SelectPrimitive.ItemIndicator>
</span>
<SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>
Expand Down
3 changes: 2 additions & 1 deletion tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export default {
sm: 'calc(var(--radius) - 4px)'
},
colors: {
"gov-blue": '#0052a5',
background: 'hsl(var(--background))',
foreground: 'hsl(var(--foreground))',
card: {
Expand Down Expand Up @@ -42,7 +43,7 @@ export default {
},
border: 'hsl(var(--border))',
input: 'hsl(var(--input))',
ring: 'hsl(var(--ring))',
ring: '#0052a5',
chart: {
'1': 'hsl(var(--chart-1))',
'2': 'hsl(var(--chart-2))',
Expand Down

0 comments on commit 1ff31bb

Please sign in to comment.