-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
83 lines (79 loc) · 3.12 KB
/
Copy pathtailwind.config.js
File metadata and controls
83 lines (79 loc) · 3.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./app/**/*.{js,jsx,ts,tsx}", "./components/**/*.{js,jsx,ts,tsx}"],
presets: [require("nativewind/preset")],
theme: {
extend: {
colors: {
// Primary
primary: " #3B82F6", // Main action buttons
// (e.g., "Add Item", "Save"), active states, icons
secondary: " #60A5FA", // Secondary buttons
// (e.g., "Cancel"), links (e.g., "Sign Up" on SignInScreen), hover effects
// Neutrals
white: " #FFFFFF", // Main app background,
// item cards, input field backgrounds
lightGray: " #F3F4F6", // Screen backgrounds,
// separators, subtle borders
mediumGray: " #6B7280", // Secondary text
// (e.g., item descriptions, quantities), inactive states, borders
ash: " #374151", // Primary text (e.g., item names, headings),
// titles, strong emphasis
// Accents
success: " #10B981", // Success feedback (e.g., "Item added" toast),
// checkmark icons
error: " #EF4444", // Error messages (e.g., invalid input),
// delete buttons, alerts
// Dark Mode (optional)
darkBackground: " #1F2937", // App background in dark mode
darkText: " #D1D5DB", // Readable text on dark backgrounds
// in dark mode
},
fontFamily: {
rubik: ["Rubik-Regular", "sans-serif"],
rBold: ["Rubik-Bold", "sans-serif"],
rExtrabold: ["Rubik-ExtraBold", "sans-serif"],
rMedium: ["Rubik-Medium", "sans-serif"],
rSemibold: ["Rubik-SemiBold", "sans-serif"],
rLight: ["Rubik-Light", "sans-serif"],
},
},
},
plugins: [],
};
/*
Theme Colors
Primary Colors
Primary Blue: Used for buttons, active states, and key actions (e.g., "Add Item", "Save").
Hex: #3B82F6 (A vibrant, modern blue from Tailwind’s blue-500).
Usage: Primary buttons, icons, and highlights.
Secondary Blue: A softer blue for subtle accents or hover states.
Hex: #60A5FA (Tailwind’s blue-400).
Usage: Secondary buttons, links (e.g., "Sign Up" on SignInScreen).
Neutral Colors
White: Backgrounds and base color for cards.
Hex: #FFFFFF (Pure white).
Usage: Main app background, item cards, input fields.
Light Gray: Subtle backgrounds or borders.
Hex: #F3F4F6 (Tailwind’s gray-100).
Usage: Screen backgrounds, separators.
Medium Gray: Text and inactive states.
Hex: #6B7280 (Tailwind’s gray-500).
Usage: Secondary text (e.g., item descriptions), borders.
Ash (Dark Gray): Stronger contrast for headings or emphasis.
Hex: #374151 (Tailwind’s gray-700).
Usage: Primary text (e.g., item names), titles.
Accent Colors
Success Green: Feedback for successful actions (e.g., item added).
Hex: #10B981 (Tailwind’s green-500).
Usage: Success toasts, icons.
Error Red: Alerts or error states (e.g., invalid input).
Hex: #EF4444 (Tailwind’s red-500).
Usage: Error messages, delete buttons.
Dark Mode (Optional)
Dark Background: If you want to support dark mode later.
Hex: #1F2937 (Tailwind’s gray-800).
Usage: App background in dark mode.
Dark Text: Readable text on dark backgrounds.
Hex: #D1D5DB (Tailwind’s gray-300).
*/