Skip to content

Commit b0d1290

Browse files
committed
updated side navbar
1 parent f4c07d6 commit b0d1290

File tree

4 files changed

+75
-29
lines changed

4 files changed

+75
-29
lines changed

app/global.css

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,18 @@
44

55
:root {
66
--muted: #606067;
7-
--background: "#fff";
8-
--foreground: "#000";
7+
--background: #fff;
8+
--foreground: #000;
9+
--primary-50: #fffef0;
10+
--primary-100: #fffac2;
11+
--primary-200: #fff299;
12+
--primary-300: #ffe766;
13+
--primary-400: #ffdb33;
14+
--primary-500: #ffcc00;
15+
--primary-600: #ffb700;
16+
--primary-700: #ff9f00;
17+
--primary-800: #e68a00;
18+
--primary-900: #b36b00;
919
}
1020

1121
.text-outlined {

config/navigation.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const navConfig: INavigationConfig = {
1212
sideNavItems: [
1313
{
1414
title: "Getting Started",
15-
children: [{ title: "Introduction", href: "/docs" }],
15+
children: [{ title: "Introduction", href: "/docs", tag: "Updated" }],
1616
},
1717
{
1818
title: "Components",
@@ -28,8 +28,6 @@ export const navConfig: INavigationConfig = {
2828
{ title: "Input", href: `${componentsRoute}/input` },
2929
{ title: "Menu", href: `${componentsRoute}/menu` },
3030
{ title: "Radio", href: `${componentsRoute}/radio` },
31-
{ title: "Radio", href: `${componentsRoute}/radio` },
32-
{ title: "Radio", href: `${componentsRoute}/radio` },
3331
{ title: "Select", href: `${componentsRoute}/select`, tag: "New" },
3432
{ title: "Tab", href: `${componentsRoute}/tab` },
3533
{ title: "Textarea", href: `${componentsRoute}/textarea` },

content/docs/index.mdx

Lines changed: 52 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Getting Started
33
description: This guide will help you get started with RetroUI, a retro styled UI library based on Tailwind CSS.
4-
lastUpdated: 08 Oct, 2024
4+
lastUpdated: 1 Mar, 2024
55
---
66

77
### 1. Add the fonts
@@ -32,40 +32,78 @@ Save the fonts in `global.css`:
3232

3333
<br />
3434

35-
### 2. Add the theme to your tailwind.config.js file.
35+
### 2. Add your theme.
36+
37+
Save your theme as CSS variables in `global.css`:
38+
39+
```css
40+
:root {
41+
--muted: #606067;
42+
--background: #fff;
43+
--foreground: #000;
44+
--primary-50: #fffef0;
45+
--primary-100: #fffac2;
46+
--primary-200: #fff299;
47+
--primary-300: #ffe766;
48+
--primary-400: #ffdb33;
49+
--primary-500: #ffcc00;
50+
--primary-600: #ffb700;
51+
--primary-700: #ff9f00;
52+
--primary-800: #e68a00;
53+
--primary-900: #b36b00;
54+
}
55+
```
56+
57+
<br />
58+
59+
Connect your theme to Tailwind in `tailwind.config.ts`:
3660

3761
```ts
3862
import type { Config } from "tailwindcss";
3963

40-
const config = {
64+
const config: Config = {
65+
content: [
66+
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
67+
"./packages/**/*.{js,ts,jsx,tsx,mdx}",
68+
"./components/**/*.{js,ts,jsx,tsx,mdx}",
69+
"./preview/**/*.{js,ts,jsx,tsx,mdx}",
70+
"./app/**/*.{js,ts,jsx,tsx,mdx}",
71+
],
4172
theme: {
4273
extend: {
74+
textColor: {
75+
muted: "var(--muted)",
76+
},
4377
fontFamily: {
4478
head: ["var(--font-head)"],
4579
sans: ["var(--font-sans)"],
4680
},
4781
boxShadow: {
4882
xs: "1px 1px 0 0 #000",
83+
sm: "2px 2px 0 0 #000",
4984
md: "3px 3px 0 0 #000",
50-
"3xl": "10px 10px 0 0 #000",
5185
},
5286
colors: {
87+
background: "var(--background)",
88+
foreground: "var(--foreground)",
5389
primary: {
54-
50: "#FFFEF0",
55-
100: "#FFFAC2",
56-
200: "#FFF299",
57-
300: "#FFE766",
58-
400: "#FFDB33",
59-
500: "#FFCC00",
60-
600: "#FFB700",
61-
700: "#FF9F00",
62-
800: "#E68A00",
63-
900: "#B36B00",
90+
50: "var(--primary-50)",
91+
100: "var(--primary-100)",
92+
200: "var(--primary-200)",
93+
300: "var(--primary-300)",
94+
400: "var(--primary-400)",
95+
500: "var(--primary-500)",
96+
600: "var(--primary-600)",
97+
700: "var(--primary-700)",
98+
800: "var(--primary-800)",
99+
900: "var(--primary-900)",
64100
},
65101
},
66102
},
67103
},
104+
plugins: [require("tailwindcss-animate")],
68105
};
106+
69107
export default config;
70108
```
71109

tailwind.config.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,16 @@ const config: Config = {
2626
background: "var(--background)",
2727
foreground: "var(--foreground)",
2828
primary: {
29-
50: "#FFFEF0",
30-
100: "#FFFAC2",
31-
200: "#FFF299",
32-
300: "#FFE766",
33-
400: "#FFDB33",
34-
500: "#FFCC00",
35-
600: "#FFB700",
36-
700: "#FF9F00",
37-
800: "#E68A00",
38-
900: "#B36B00",
29+
50: "var(--primary-50)",
30+
100: "var(--primary-100)",
31+
200: "var(--primary-200)",
32+
300: "var(--primary-300)",
33+
400: "var(--primary-400)",
34+
500: "var(--primary-500)",
35+
600: "var(--primary-600)",
36+
700: "var(--primary-700)",
37+
800: "var(--primary-800)",
38+
900: "var(--primary-900)",
3939
},
4040
},
4141
},

0 commit comments

Comments
 (0)