Theming
Example
window.TNB('setTheme', {
// Define your theme here
});window.TNB('setTheme', {
// The colors should be strings in a format which can be parsed
// by https://www.npmjs.com/package/color . Normal CSS values will
// do
colors: {
primary: '#00ADED',
secondary: '#EA5049'
},
// The following value is the background color when expanding the
// ribbon widget
overlayColorWidget: 'rgba(70, 70, 70, 0.6)',
// The font family of the header elements
displayFontFamily:
'"Varela Round", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',
// In case the font family above is not provided by the browser
// you should import it using the value below. This value will be
// placed in a css import like so:
// @import url('VALUE')
displayFontImport: 'https://fonts.googleapis.com/css?family=Varela+Round',
// The public url to your logo. It's called icon because this logo
// shouldn't be too prominent. In the future we might also provide
// a 'banner' attribute for those situations
icon: 'http://example.org/image.svg',
// Your homepage: used when people click on your logo, for
// example. Please use the full URL
homePage: 'http://example.org/'
});Trying out your theme

Advanced usage
Last updated