Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@travix/ui-themes

Package Overview
Dependencies
Maintainers
8
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@travix/ui-themes

Collection of UI Themes for Travix websites

  • 1.1.4
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
143
increased by134.43%
Maintainers
8
Weekly downloads
 
Created
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

Package last updated on 29 Jun 2022

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc