---
title: "Theming"
description: "CSS variables for color, shape and animation."
canonical_url: "https://kukson777.github.io/boneprint/docs/customization/theming"
---
# Theming

> CSS variables for color, shape and animation.

<theme-demo>



</theme-demo>

## Variables

<table>
<thead>
  <tr>
    <th>
      Variable
    </th>
    
    <th>
      Purpose
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        --skeleton-color
      </code>
    </td>
    
    <td>
      bone color
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --skeleton-line-color
      </code>
    </td>
    
    <td>
      color of remembered borders and dividers; by default each keeps its own border color
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --skeleton-radius
      </code>
    </td>
    
    <td>
      bar corner radius
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --skeleton-highlight
      </code>
    </td>
    
    <td>
      shimmer color
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --skeleton-shimmer
      </code>
    </td>
    
    <td>
      <code>
        none
      </code>
      
       turns the shimmer off
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --skeleton-pulse
      </code>
    </td>
    
    <td>
      <code>
        skeleton-pulse
      </code>
      
       turns pulsing on
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --skeleton-hold
      </code>
    </td>
    
    <td>
      how long to wait before showing a skeleton, <code>
        150ms
      </code>
      
       by default
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --skeleton-text-top
      </code>
    </td>
    
    <td>
      where a text bar starts: <code>
        cap-height
      </code>
      
       by default, <code>
        ascender
      </code>
      
       or <code>
        x-height
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --skeleton-text-bottom
      </code>
    </td>
    
    <td>
      where a text bar ends: <code>
        descender
      </code>
      
       by default, or <code>
        baseline
      </code>
    </td>
  </tr>
</tbody>
</table>

## Dark mode

Variables are plain CSS, so dark mode works like everything else:

```css
:root { --skeleton-color: rgb(0 0 0 / 0.08); }
.dark { --skeleton-color: rgb(255 255 255 / 0.09); }
```

With `prefers-reduced-motion`, animation turns itself off.


## Sitemap

See the full [sitemap](https://kukson777.github.io/boneprint/sitemap.md) for all pages.
