Skip to content

Commit 751f279

Browse files
Merge pull request #2 from Ditectrev/feature/colors-branding
feat: make our branding colors
2 parents 6a39d8d + d1e3655 commit 751f279

File tree

6 files changed

+2336
-2376
lines changed

6 files changed

+2336
-2376
lines changed

app/not-found.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default function NotFound() {
1515
<p className="mb-8">But dont worry, you can find plenty of other things on our homepage.</p>
1616
<Link
1717
href="/"
18-
className="focus:shadow-outline-blue inline rounded-lg border border-transparent bg-blue-600 px-4 py-2 text-sm leading-5 font-medium text-white shadow-xs transition-colors duration-150 hover:bg-blue-700 focus:outline-hidden dark:hover:bg-blue-500"
18+
className="focus:shadow-outline-primary bg-primary-600 hover:bg-primary-700 dark:hover:bg-primary-500 inline rounded-lg border border-transparent px-4 py-2 text-sm leading-5 font-medium text-white shadow-xs transition-colors duration-150 focus:outline-hidden"
1919
>
2020
Back to homepage
2121
</Link>

app/tag-data.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
"rest": 1,
1010
"web-development": 2,
1111
"web-services": 1,
12+
"css": 1,
13+
"frontend": 1,
14+
"software-development": 2,
1215
"android": 1,
1316
"androidx": 1,
1417
"jetifier": 1,
15-
"mobile-development": 1,
16-
"software-development": 2,
17-
"css": 1,
18-
"frontend": 1
18+
"mobile-development": 1
1919
}

components/Header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ const Header = () => {
6464
>
6565
{link.title}
6666
{link.external && (
67-
<ExternalLink className="h-4 w-4 text-blue-500 dark:text-blue-400" />
67+
<ExternalLink className="text-primary-500 dark:text-primary-400 h-4 w-4" />
6868
)}
6969
</Link>
7070
))}

components/MobileNav.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ const MobileNav = () => {
8282
>
8383
{link.title}
8484
{link.external && (
85-
<ExternalLink className="h-4 w-4 text-blue-500 dark:text-blue-400" />
85+
<ExternalLink className="text-primary-500 dark:text-primary-400 h-4 w-4" />
8686
)}
8787
</Link>
8888
))}

css/tailwind.css

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,23 @@
77
/* Core theme configuration */
88
@theme {
99
/* Font families */
10-
--font-sans: var(--font-space-grotesk), ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji',
10+
--font-sans:
11+
var(--font-space-grotesk), ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji',
1112
'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
1213

1314
/* Colors */
14-
/* Copied from https://tailwindcss.com/docs/theme#default-theme-variable-reference */
15-
--color-primary-50: oklch(0.971 0.014 343.198);
16-
--color-primary-100: oklch(0.948 0.028 342.258);
17-
--color-primary-200: oklch(0.899 0.061 343.231);
18-
--color-primary-300: oklch(0.823 0.12 346.018);
19-
--color-primary-400: oklch(0.718 0.202 349.761);
20-
--color-primary-500: oklch(0.656 0.241 354.308);
21-
--color-primary-600: oklch(0.592 0.249 0.584);
22-
--color-primary-700: oklch(0.525 0.223 3.958);
23-
--color-primary-800: oklch(0.459 0.187 3.815);
24-
--color-primary-900: oklch(0.408 0.153 2.432);
25-
--color-primary-950: oklch(0.284 0.109 3.907);
15+
/* Brand color #3f51b5 converted to OKLCH and scaled for accessibility */
16+
--color-primary-50: oklch(0.95 0.02 264);
17+
--color-primary-100: oklch(0.9 0.04 264);
18+
--color-primary-200: oklch(0.82 0.08 264);
19+
--color-primary-300: oklch(0.72 0.12 264);
20+
--color-primary-400: oklch(0.62 0.16 264);
21+
--color-primary-500: oklch(0.52 0.18 264); /* #3f51b5 */
22+
--color-primary-600: oklch(0.45 0.16 264);
23+
--color-primary-700: oklch(0.38 0.14 264);
24+
--color-primary-800: oklch(0.32 0.12 264);
25+
--color-primary-900: oklch(0.26 0.1 264);
26+
--color-primary-950: oklch(0.18 0.08 264);
2627

2728
--color-gray-50: oklch(0.985 0.002 247.839);
2829
--color-gray-100: oklch(0.967 0.003 264.542);

0 commit comments

Comments
 (0)