Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set up design system #51

Merged
merged 9 commits into from
Dec 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions project-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ GOLUB
tailwindcss
tsbuildinfo
vercel
Roboto
17 changes: 17 additions & 0 deletions src/app/fonts.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { Roboto, Ubuntu } from 'next/font/google'

export const title = Ubuntu({
display: 'swap',
style: 'normal',
subsets: ['latin'],
variable: '--font-title',
weight: ['400', '500'],
})

export const text = Roboto({
display: 'swap',
style: 'normal',
subsets: ['latin'],
variable: '--font-text',
weight: '400',
})
24 changes: 0 additions & 24 deletions src/app/globals.css
Original file line number Diff line number Diff line change
@@ -1,27 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
--foreground-rgb: 0, 0, 0;
--background-start-rgb: 214, 219, 220;
--background-end-rgb: 255, 255, 255;
}

@media (prefers-color-scheme: dark) {
:root {
--foreground-rgb: 255, 255, 255;
--background-start-rgb: 0, 0, 0;
--background-end-rgb: 0, 0, 0;
}
}

body {
color: rgb(var(--foreground-rgb));
background: linear-gradient(
to bottom,
transparent,
rgb(var(--background-end-rgb))
)
rgb(var(--background-start-rgb));
}
7 changes: 2 additions & 5 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import type { Metadata } from 'next'

import { Inter } from 'next/font/google'

import { text, title } from './fonts'
import './globals.css'

const inter = Inter({ subsets: ['latin'] })

export const metadata: Metadata = {
description: 'Generated by create next app',
title: 'Create Next App',
Expand All @@ -18,7 +15,7 @@ export default function RootLayout({
}) {
return (
<html lang="en">
<body className={inter.className}>{children}</body>
<body className={`${title.variable} ${text.variable}`}>{children}</body>
</html>
)
}
27 changes: 24 additions & 3 deletions tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,30 @@ const config: Config = {
theme: {
extend: {
backgroundImage: {
'gradient-conic':
'conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))',
'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))',
'gradient-blue-white':
'linear-gradient(168deg, rgb(224, 237, 255, 1) 0%, rgba(255, 255, 255, 1) 100%)',
'gradient-purple-blue':
'linear-gradient(91deg, rgba(145, 159, 222, 1) 0%, rgba(45, 109, 205, 1) 100%)',
},
colors: {
'base-black': 'rgba(28, 28, 30, 1)',
'base-gray-1': 'rgba(142, 142, 147, 1)',
'base-gray-2': 'rgba(174, 174, 178, 1)',
'base-gray-3': 'rgba(199, 199, 204, 1)',
'base-gray-4': 'rgba(209, 209, 214, 1)',
'base-gray-5': 'rgba(229, 229, 234, 1)',
'base-gray-6': 'rgba(242, 242, 247, 1)',
'base-gray-7': 'rgba(44, 44, 46, 1)',
'base-gray-8': 'rgba(58, 58, 60, 1)',
'base-gray-9': 'rgba(99, 99, 102, 1)',
'base-white': 'rgba(255, 255, 255, 1)',
'bright-blue': 'rgba(53, 113, 207, 1)',
'bright-indigo': 'rgba(71, 112, 200, 1)',
'bright-orange': 'rgba(255, 149, 0, 1)',
'bright-purple': 'rgba(175, 82, 222, 1)',
'bright-red': 'rgba(255, 59, 48, 1)',
'bright-teal': 'rgba(92, 193, 250, 1)',
'bright-yellow': 'rgba(255, 204, 0, 1)',
},
},
},
Expand Down