Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

gosling-lang/gosling-theme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

138 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gosling Themes

Styling themes for Gosling.js visualizations.

(This repository is under development)

How To Use

import { Themes, getTheme } from 'gosling-theme';
import { GoslingComponent } from 'gosling.js';

<GoslingComponent spec={spec} theme={Themes.dark}>

// or

<GoslingComponent spec={spec} theme={getTheme('dark')}>

// or just

<GoslingComponent spec={spec} theme={'dark'}>

// to customize the style

<GoslingComponent spec={spec} theme={{base: 'dark', axis: { baselineColor: 'green' }}>

You can find an example html file below \demo.

Development

Install Packages

yarn

Run Demo

yarn start

This opens a webpage based on demo/index.html.

To test with other themes defined in src/, you need to change the following line of code in demo/index.html:

{
    theme: goslingTheme.Themes.washu
}

Publish Package

When you patch the version and push the code with tags, GitHub will do the job to publish the latest NPM package:

yarn version --patch
git push origin master --tags

About

Styling themes for Gosling.js

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors