Socket
Socket
Sign inDemoInstall

@travix/ui-themes

Package Overview
Dependencies
0
Maintainers
8
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @travix/ui-themes

Collection of UI Themes for Travix websites


Version published
Maintainers
8
Install size
35.1 kB
Created

Readme

Source

Travix themes

This is repository for Travix brand themes

Motivation

As we are moving components to separate travix ui kit we need to provide configuration file for different Travix brands. The main idea of this configuration files is to follow inharitance model where the common rules are written in the _default.yaml files, and this rules can be overwritten by rules specific by brand, affiliate or language.

How it is structured:

In themes/_default.yaml file you can find the most common rules defining a Travix theme. To have specific theme for example CT, we have the path themes/cheaptickets/_default.yaml. If you want to be even more specific, for example on an affiliate level, then the file created to overwrite this rules, let's say for NL, needs to have the following path themes/cheaptickets/NL/_default.yaml.

How to use it in a project:

const fs = require('fs');
const travixTheme = require('travix-themes');
const file = travixTheme('cheaptickets', 'en', 'US');
fs.writeFileSync('./theme.yaml', file);

Work in progress

FAQs

Last updated on 29 Jun 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc