Colors
blue
--tblr-blue
azure
--tblr-azure
indigo
--tblr-indigo
purple
--tblr-purple
pink
--tblr-pink
red
--tblr-red
orange
--tblr-orange
yellow
--tblr-yellow
lime
--tblr-lime
green
--tblr-green
teal
--tblr-teal
cyan
--tblr-cyan
blue-lt
--tblr-blue-lt
azure-lt
--tblr-azure-lt
indigo-lt
--tblr-indigo-lt
purple-lt
--tblr-purple-lt
pink-lt
--tblr-pink-lt
red-lt
--tblr-red-lt
orange-lt
--tblr-orange-lt
yellow-lt
--tblr-yellow-lt
lime-lt
--tblr-lime-lt
green-lt
--tblr-green-lt
teal-lt
--tblr-teal-lt
cyan-lt
--tblr-cyan-lt
gray-50
--tblr-gray-50
gray-100
--tblr-gray-100
gray-200
--tblr-gray-200
gray-300
--tblr-gray-300
gray-400
--tblr-gray-400
gray-500
--tblr-gray-500
gray-600
--tblr-gray-600
gray-700
--tblr-gray-700
gray-800
--tblr-gray-800
gray-900
--tblr-gray-900
--tblr-facebook
--tblr-twitter
--tblr-linkedin
--tblr-google
youtube
--tblr-youtube
vimeo
--tblr-vimeo
dribbble
--tblr-dribbble
github
--tblr-github
--tblr-instagram
--tblr-pinterest
vk
--tblr-vk
rss
--tblr-rss
flickr
--tblr-flickr
bitbucket
--tblr-bitbucket
tabler
--tblr-tabler
black
--tblr-black
white
--tblr-white
gray
--tblr-gray
primary
--tblr-primary
secondary
--tblr-secondary
success
--tblr-success
info
--tblr-info
warning
--tblr-warning
danger
--tblr-danger
light
--tblr-light
dark
--tblr-dark
The colors above are from the official site custom theme. View this page with the default theme to see the colors that are used by default.
Customization and theming
SQLPage is designed to be easily customizable and themable.
You cannot pass arbitrary color codes to components from your SQL queries,
but you can customize which exact color is associated to each color name.
When you change a fill color, set its matching -fg variable to keep text readable.
Creating a custom theme
To create a custom theme, you can create a CSS file and use the shell component to include it.
index.sql
select 'shell' as component, 'custom_theme.css' as css, 'custom_theme' as theme;
custom_theme.css
:root,
.layout-boxed[data-bs-theme="custom_theme"] {
color-scheme: dark;
/* Base text colors */
--tblr-body-color: #cfd5e6;
--tblr-text-secondary-rgb: 204, 209, 217;
--tblr-secondary-color: #cccccc;
--tblr-muted-color: rgba(191, 191, 191, 0.8);
/* Background colors */
--tblr-body-bg: #0f1426;
--tblr-bg-surface: #111629;
--tblr-bg-surface-secondary: #151a2e;
--tblr-bg-surface-tertiary: #191f33;
/* Primary and secondary colors */
--tblr-primary-rgb: 139, 184, 232;
--tblr-primary: rgb(var(--tblr-primary-rgb));
--tblr-primary-fg: var(--tblr-body-bg);
--tblr-secondary-rgb: 235, 232, 255;
--tblr-secondary: rgb(var(--tblr-secondary-rgb));
/* Border colors */
--tblr-border-color: #151926;
--tblr-border-color-translucent: #404d73b3;
/* Theme colors. All sqlpage colors can be customized in the same way. */
--tblr-blue-rgb: 84, 151, 213; /* To convert between #RRGGBB color codes to decimal RGB values, you can use https://www.rapidtables.com/web/color/RGB_Color.html */
--tblr-blue: rgb(var(--tblr-blue-rgb));
--tblr-red-rgb: 229, 62, 62;
--tblr-red: rgb(var(--tblr-red-rgb));
--tblr-green-rgb: 72, 187, 120;
--tblr-green: rgb(var(--tblr-green-rgb));
}
/* Pagination has its own active label color in Tabler. */
.pagination {
--tblr-pagination-active-color: var(--tblr-primary-fg);
}