diff --git a/SKILL.md b/SKILL.md index fcb3824..e9638ed 100644 --- a/SKILL.md +++ b/SKILL.md @@ -74,25 +74,26 @@ Maintain the product principles of purpose, agency, familiarity, flexibility, si ### Canonical palette -`~/.config/foot/foot.ini` `[colors]` is the palette authority for this site. `colors.ini` records the allowed values for the repository, `src/theme/colors.js` provides named JS tokens, and `tailwind.config.js` mirrors them for utilities. Keep all three aligned. The site must use only these Foot colors; alpha variants of those colors are allowed for non-navigation state and scrims. Navigation menus and menu headers must remain fully opaque. +`src/theme/colors.js` is the named JS palette. `tailwind.config.js` mirrors it and adds `dash` semantic colors. Keep both aligned if changing a token. -| Foot color | Value | Common role | +| Token | Value | Usage | | --- | --- | --- | -| `background` / `regular0` | `#151515` | Page, menu, and dialog base. | -| `foreground` / `regular7` | `#D0D0D0` | Body copy and standard controls. | -| `selection-foreground` / `bright7` | `#F5F5F5` | Headings and selected text. | -| `bright0` | `#505050` | Borders, disabled decoration, and hard-shadow ink. | -| `regular1` | `#A53C23` | Danger and destructive actions. | -| `regular2` | `#7B9246` | Success state. | -| `regular3` | `#D3A04D` | Warning and selective emphasis. | -| `regular4` | `#6C99BB` | Primary actions, links, and focus. | -| `regular5` | `#9F4E85` | Secondary status distinction. | -| `regular6` | `#5EA8A2` | Supporting status distinction. | -| `bright4` | `#547C99` | Secondary blue, hover, and focus boundary. | +| `background` | `#151515` | Main page background. | +| `panel` / `backgroundSecondary` | `#181818` | Header, dialogs, and panel fill. | +| `surface` | `#202020` | Raised content surface. | +| `hover` | `#282828` | Hover surface. | +| `border` / `brightBlack` | `#2F2F2F` | Strong outline and hard-shadow ink. | +| `focus` | `#454545` | Focus-adjacent neutral boundary. | +| `foreground` | `#D0D0D0` | Body copy. | +| `muted` | `#898989` | Secondary copy and labels, with enough contrast for small text on the dark surfaces. | +| `dim` | `#505050` | Decorative or disabled content only. | +| `brightWhite` | `#F5F5F5` | Headings and key values. | +| `primary` / `brightBlue` | `#6C99BB` | Primary actions and keyboard focus. | +| `accent_secondary` / `blue` | `#6C99BB` | Accent and link color, checked for readable contrast on panel surfaces. | +| `yellow` / `brightYellow` | `#D3A04D` | Warning state and selective emphasis. | +| semantic green / red / cyan | `#7B9246` / `#A53C23` / `#5EA8A2` | Success, danger, and supporting status roles where required by existing UI. Keep labels/icons with color so meaning never depends on color alone. | -Use the base background with visible borders to create structure; do not invent extra graphite shades. Pair colored status text with a label or icon so color never carries meaning alone. - -Dashboard semantic Tailwind tokens are `dash.surface`, `dash.surfaceElevated`, `dash.border`, `dash.text`, `dash.textMuted`, `dash.accent`, `dash.danger`, `dash.success`, and `dash.warning`. `dashboardTokens.js` exports matching JS values and `dashLayout` class strings: `viewShell` is a squared, bordered panel, `headerBar` is a responsive header strip, and `bodyPadding` establishes section spacing. Prefer semantic tokens such as `text-dash-text` over repeated hex values or arbitrary colors. `colors.ini`, `src/theme/colors.js`, the dashboard tokens, and `tailwind.config.js` must remain within the Foot palette. +Dashboard semantic Tailwind tokens are `dash.surface`, `dash.surfaceElevated`, `dash.border`, `dash.text`, `dash.textMuted`, `dash.accent`, `dash.danger`, `dash.success`, and `dash.warning`. `dashboardTokens.js` exports matching JS values and `dashLayout` class strings: `viewShell` is a squared, bordered panel, `headerBar` is a responsive header strip, and `bodyPadding` establishes section spacing. Prefer semantic tokens such as `text-dash-text` over repeated hex values or arbitrary colors. `colors.ini` is the palette source of truth; `src/theme/colors.js`, the `dash` tokens, and `tailwind.config.js` must stay aligned with it. ### Typography, spacing, and responsive behavior diff --git a/colors.ini b/colors.ini index e359fd7..794284b 100644 --- a/colors.ini +++ b/colors.ini @@ -1,17 +1,14 @@ -# Site palette mirrored from ~/.config/foot/foot.ini [colors]. -# Keep every rendered site color within this exact set. [colors] background = #151515 -foreground = #D0D0D0 -selection_foreground = #F5F5F5 -selection_background = #6C99BB -regular_red = #A53C23 -regular_green = #7B9246 -regular_yellow = #D3A04D -regular_blue = #6C99BB -regular_magenta = #9F4E85 -regular_cyan = #5EA8A2 -regular_white = #D0D0D0 -bright_black = #505050 -bright_blue = #547C99 -bright_white = #F5F5F5 +panel = #181818 +surface = #202020 +hover = #282828 +border = #2F2F2F +focus = #454545 +text = #D0D0D0 +muted = #898989 +dim = #505050 +emphasis = #F5F5F5 +accent = #6C99BB +accent_secondary = #6C99BB +warning = #D3A04D diff --git a/src/App.jsx b/src/App.jsx index b15b062..9a924c7 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -694,7 +694,7 @@ function LoginModal({ onClose, onLogin, onSwitchToRegister, colors, authConfig } return (
+ style={{ borderColor: `${colors.blue}20`, boxShadow: `0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px ${colors.blue}10` }}>
@@ -803,7 +803,7 @@ function LoginModal({ onClose, onLogin, onSwitchToRegister, colors, authConfig } className="mt-6 w-full py-4 rounded-2xl font-bold text-sm transition-all duration-300 hover:bg-white/5 border flex items-center justify-center gap-3" style={{ backgroundColor: 'transparent', borderColor: colors.brightBlack, color: colors.brightWhite }} > - + Continue with Google )} @@ -1100,7 +1100,7 @@ function RegisterModal({ return (
+ style={{ borderColor: `${colors.green}20`, boxShadow: `0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px ${colors.green}10` }}>
diff --git a/src/components/DashboardComponents.jsx b/src/components/DashboardComponents.jsx index ad0bc2a..18302af 100644 --- a/src/components/DashboardComponents.jsx +++ b/src/components/DashboardComponents.jsx @@ -348,7 +348,7 @@ export const ResourceGraph = ({ data, color, title, unit, maxValue, currentValue
-
+
{serverStatus === 'Running' && (
)} @@ -599,7 +599,7 @@ export const MinecraftSettings = ({ server, settings, onSave, isLoading }) => { @@ -286,7 +284,7 @@ const AdminPage = () => { {/* Alert Modal */} {alertModal.open && (
-
+
{
Dashboard
- @@ -3340,7 +3340,7 @@ const handleWebSocketMessage = useCallback((data) => { { label: 'Username', value: selectedServer.sftp_username }, { label: 'Password', value: selectedServer.sftp_password, isPassword: true } ].map((item, idx) => ( -
+
{item.label}
@@ -3399,7 +3399,7 @@ const handleWebSocketMessage = useCallback((data) => { showAlert('Success', 'SFTP command copied to clipboard', 'success'); }} className="flex-1 lg:w-full flex items-center justify-center space-x-2 px-4 py-3 rounded-xl text-sm font-medium transition-all duration-200 hover:scale-105 border bg-white/5" - style={{ borderColor: 'rgba(245,245,245,0.1)', color: colors.brightWhite }} + style={{ borderColor: 'rgba(255,255,255,0.1)', color: colors.brightWhite }} > Copy SSH Cmd @@ -3502,7 +3502,7 @@ const handleWebSocketMessage = useCallback((data) => {
-
+

Internal ports stay inside the server; external ports accept connections from the internet.

- 22 + 22
@@ -3623,7 +3623,7 @@ const handleWebSocketMessage = useCallback((data) => {
- {port.internal} + {port.internal}
diff --git a/src/pages/DocumentationPage.jsx b/src/pages/DocumentationPage.jsx index 1ef460d..d416cd4 100644 --- a/src/pages/DocumentationPage.jsx +++ b/src/pages/DocumentationPage.jsx @@ -1126,7 +1126,7 @@ Then visit the website and complete the WordPress setup form with the database n )} {activeArticle &&
-
+
diff --git a/src/theme/colors.js b/src/theme/colors.js index fc5c31d..bbc9236 100644 --- a/src/theme/colors.js +++ b/src/theme/colors.js @@ -1,40 +1,31 @@ -/** Site palette mirrored from ~/.config/foot/foot.ini. Keep Tailwind aliases aligned. */ +/** Product palette: colors.ini is the canonical source; keep Tailwind aligned. */ export const colors = { foreground: '#D0D0D0', background: '#151515', - backgroundSecondary: '#151515', + backgroundSecondary: '#181818', black: '#151515', red: '#A53C23', green: '#7B9246', yellow: '#D3A04D', orange: '#D3A04D', blue: '#6C99BB', - magenta: '#9F4E85', + magenta: '#6C99BB', cyan: '#5EA8A2', - white: '#D0D0D0', - brightBlack: '#505050', + white: '#898989', + brightBlack: '#2F2F2F', brightRed: '#A53C23', brightGreen: '#7B9246', brightYellow: '#D3A04D', brightBlue: '#6C99BB', - brightMagenta: '#9F4E85', + brightMagenta: '#6C99BB', brightCyan: '#5EA8A2', brightWhite: '#F5F5F5', primary: '#6C99BB', - darkBlue: '#547C99', + darkBlue: '#6C99BB', darkCyan: '#5EA8A2', darkWhite: '#505050', darkRed: '#A53C23', darkGreen: '#7B9246', darkYellow: '#D3A04D', - darkMagenta: '#9F4E85', - surface: '#151515', - hover: '#547C99', - border: '#505050', - focus: '#547C99', - muted: '#D0D0D0', - dim: '#505050', - emphasis: '#F5F5F5', - accent_secondary: '#547C99', - warning: '#D3A04D', + darkMagenta: '#6C99BB', }; diff --git a/src/theme/dashboardTokens.js b/src/theme/dashboardTokens.js index 6b08773..5cc036e 100644 --- a/src/theme/dashboardTokens.js +++ b/src/theme/dashboardTokens.js @@ -5,15 +5,15 @@ import { colors } from './colors'; export const dash = { - surface: colors.surface, + surface: '#202020', surfaceElevated: colors.backgroundSecondary, - border: colors.border, + border: '#2F2F2F', text: colors.brightWhite, - textMuted: colors.muted, + textMuted: '#D0D0D0', accent: colors.primary, - danger: colors.red, - success: colors.green, - warning: colors.yellow, + danger: '#A53C23', + success: '#7B9246', + warning: '#D3A04D', }; /** Shared layout class strings for panel chrome */ diff --git a/tailwind.config.js b/tailwind.config.js index d4e7130..186abd5 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -5,9 +5,9 @@ module.exports = { extend: { colors: { dash: { - surface: "#151515", - surfaceElevated: "#151515", - border: "#505050", + surface: "#202020", + surfaceElevated: "#181818", + border: "#2F2F2F", text: "#F5F5F5", textMuted: "#D0D0D0", accent: "#6C99BB", @@ -15,36 +15,34 @@ module.exports = { success: "#7B9246", warning: "#D3A04D", }, - // Preserve common legacy utility names without importing Tailwind's palette. - blue: { DEFAULT: "#6C99BB", 400: "#6C99BB", 500: "#6C99BB", 600: "#547C99" }, - cyan: { DEFAULT: "#5EA8A2", 400: "#5EA8A2", 500: "#5EA8A2" }, - green: { DEFAULT: "#7B9246", 400: "#7B9246", 500: "#7B9246" }, - red: { DEFAULT: "#A53C23", 400: "#A53C23", 500: "#A53C23", 600: "#A53C23" }, - yellow: { DEFAULT: "#D3A04D", 400: "#D3A04D", 500: "#D3A04D" }, - orange: { DEFAULT: "#D3A04D", 400: "#D3A04D", 500: "#D3A04D", 600: "#D3A04D" }, - gray: { 200: "#D0D0D0", 400: "#D0D0D0", 500: "#505050", 700: "#505050", 900: "#151515" }, foreground: "#D0D0D0", background: "#151515", - backgroundSecondary: "#151515", + backgroundSecondary: "#181818", black: "#151515", - white: "#F5F5F5", - magenta: "#9F4E85", - brightBlack: "#505050", + red: "#A53C23", + green: "#7B9246", + yellow: "#D3A04D", + orange: "#D3A04D", + blue: "#6C99BB", + magenta: "#6C99BB", + cyan: "#5EA8A2", + white: "#898989", + brightBlack: "#2F2F2F", brightRed: "#A53C23", brightGreen: "#7B9246", brightYellow: "#D3A04D", brightBlue: "#6C99BB", - brightMagenta: "#9F4E85", + brightMagenta: "#6C99BB", brightCyan: "#5EA8A2", brightWhite: "#F5F5F5", primary: "#6C99BB", - darkBlue: "#547C99", + darkBlue: "#6C99BB", darkCyan: "#5EA8A2", darkWhite: "#505050", darkRed: "#A53C23", darkGreen: "#7B9246", darkYellow: "#D3A04D", - darkMagenta: "#9F4E85", + darkMagenta: "#6C99BB", }, }, },