Country-Click uses Tailwind CSS 3.x with a custom color palette that gives the app its warm, earth-tone aesthetic. All colors are defined inDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/AndresLopezCorrales/Countries-WebPage/llms.txt
Use this file to discover all available pages before exploring further.
tailwind.config.js and referenced throughout the PHP templates. Changing the theme requires updating the config, optionally adjusting any renamed tokens in src/input.css and the PHP files, and then rebuilding the compiled CSS.
Current color palette
| Token | Hex | Usage |
|---|---|---|
brown-super-hard | #A45C40 | Dark brown: info icon fill, dark navbar background |
brown-hard | #C38370 | Medium brown: SVG country fill, field labels in info panel |
brown-medium | #E4B7A0 | Light brown: SVG hover fill, border colors |
brown-low | #F6EEE0 | Cream: page background, navbar background, input background |
extend.colors section of tailwind.config.js:
tailwind.config.js
Changing colors
Update hex values in tailwind.config.js
Open
tailwind.config.js and update the hex values in the colors object. You can keep the existing token names and simply swap the hex codes, or rename tokens entirely and add new ones to the extend.colors block.Update src/input.css if you renamed tokens
The
.country class in src/input.css uses fill-brown-hard and hover:fill-brown-medium to style every clickable SVG country shape. If you renamed those color tokens, update the class names here to match:src/input.css
Rebuild the compiled CSS
Run the Tailwind CLI build command from the project root to regenerate
src/output.css with your new palette:Where colors are used in templates
If you rename a color token, you will also need to update every class reference insrc/index.php and src/controller/ApiConsumer.php. The table below maps each token to the elements it controls:
| Class | File | Role |
|---|---|---|
bg-brown-low | index.php | Page body background, navbar background, search input background |
bg-brown-super-hard | index.php | Dark navbar (dark mode), popover background |
border-brown-medium | index.php | Navbar border, search button border on mobile |
text-brown-low | index.php | Navbar brand text (dark mode), search button text |
text-brown-super-hard | ApiConsumer.php | Info panel text, error messages |
text-brown-hard | ApiConsumer.php | Info panel field labels (Capital, Population, Languages, Timezone) |
fill-brown-hard | src/input.css | Default SVG country fill (applied via .country class) |
hover:fill-brown-medium | src/input.css | SVG country hover fill (applied via .country class) |
./src/**/*.{html,js,php} at build time (as configured in the content array), any class you add or rename in those files will automatically be included in the next build — no manual purge configuration is needed.
Example: switching to a blue ocean theme
To replace the brown palette with a cool blue palette, update thecolors block in tailwind.config.js:
tailwind.config.js
src/input.css and the PHP templates require no edits — only a CSS rebuild is needed.