All Projects → simonsmith → postcss-property-lookup

simonsmith / postcss-property-lookup

Licence: MIT license
PostCSS plugin for property lookups, similar to Stylus

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to postcss-property-lookup

LOC-Extension
LibreOffice Cryptocurrency extension
Stars: ✭ 33 (-50.75%)
Mutual labels:  lookup
elm-tachyons-boilerplate
Simple setup for Elm and Tachyons
Stars: ✭ 17 (-74.63%)
Mutual labels:  postcss
sapper-with-postcss-and-tailwind
Basic Sapper app with PostCSS + Tailwind
Stars: ✭ 23 (-65.67%)
Mutual labels:  postcss
mobileweb
webpack 5 + postcss 8 构建移动端网站架子
Stars: ✭ 23 (-65.67%)
Mutual labels:  postcss
stencil-boilerplate
A Stencil app boilerplate including routing, Redux etc.
Stars: ✭ 51 (-23.88%)
Mutual labels:  postcss
alfred-postcss-workflow
Alfred App Workflow for https://www.postcss.parts
Stars: ✭ 14 (-79.1%)
Mutual labels:  postcss
nextjs-landing-starter
Build your landing site based on Next.JS in minutes 🚀
Stars: ✭ 59 (-11.94%)
Mutual labels:  postcss
tooltip-generator
💫 A tool to generate CSS code for tooltips. Built with Vue.js and Tailwind CSS
Stars: ✭ 32 (-52.24%)
Mutual labels:  postcss
postcss-input-style
PostCSS plugin that adds new pseudo-elements for easily styling the inner elements of inputs
Stars: ✭ 16 (-76.12%)
Mutual labels:  postcss
postcss-center
PostCSS plugin to center elements.
Stars: ✭ 44 (-34.33%)
Mutual labels:  postcss
chrome-shanbay-v2
shanbay chrome extension
Stars: ✭ 19 (-71.64%)
Mutual labels:  lookup
browser-extension
Browser Extension Template with ESbuild builds, support for React, Preact, Typescript, Tailwind, Manifest V3/V2 support and multi browser build including Chrome, Firefox, Safari, Edge, Brave.
Stars: ✭ 535 (+698.51%)
Mutual labels:  postcss
vital
Starter template for Vite with React (TypeScript). Supports Tailwind with CSS-Modules. Jest and @react/testing-library configured and ready to go. Also ESLint, Prettier, Husky, Commit-lint and Atomic Design for components.
Stars: ✭ 151 (+125.37%)
Mutual labels:  postcss
fylgja
The modular highly customisable CSS framework. Powered by CSS Components, Utilities and Props for building your Web UI.
Stars: ✭ 65 (-2.99%)
Mutual labels:  postcss
hscode
📘🖥 A command line reference tool for http status codes.
Stars: ✭ 31 (-53.73%)
Mutual labels:  lookup
webpack-boilerplate
Webpack 4 boilerplate (babel, eslint, prettier, jest, sass, postcss, hmr, browsersync)
Stars: ✭ 33 (-50.75%)
Mutual labels:  postcss
pwa
An opinionated progressive web app boilerplate
Stars: ✭ 355 (+429.85%)
Mutual labels:  postcss
sveltekit-starter
Sveltekit starter project created with sveltekit, typescript, tailwindcss, postcss, husky, and storybook. The project has the structure set up for the scaleable web application.
Stars: ✭ 482 (+619.4%)
Mutual labels:  postcss
faven
A web tool to help you generate favicons
Stars: ✭ 126 (+88.06%)
Mutual labels:  postcss
tailwindcss
Add Tailwind CSS to your Svelte project
Stars: ✭ 583 (+770.15%)
Mutual labels:  postcss

postcss-property-lookup Build Status

PostCSS plugin that allows referencing property values without a variable, similar to Stylus.

.Test {
  margin-left: 20px;
  margin-right: @margin-left;
  color: red;
  background: @color url('test.png');
  line-height: 1.5;
  font-size: @(line-height)em;
}
.Test {
  margin-left: 20px;
  margin-right: 20px;
  color: red;
  background: red url('test.png');
  line-height: 1.5;
  font-size: 1.5em;
}

Check the test fixtures for more examples.

Usage

postcss([ require('postcss-property-lookup') ])

See PostCSS docs for examples for your environment.

Installation

$ yarn add postcss-property-lookup

Usage

JavaScript

postcss([
  require('postcss-property-lookup')(/* options */),
  // more plugins...
])

TypeScript

///<reference path="node_modules/postcss-property-lookup/.d.ts" />
import postcssPropertyLookup from 'postcss-property-lookup';

postcss([
  postcssPropertyLookup(/* options */),
  // more plugins...
])

Options

logLevel

Type: string: <error|warn>
Required: false
Default: warn

When a lookup cannot be resolved, this specifies whether to throw an error or log a warning. In the case of a warning, the invalid lookup value will be replaced with an empty string.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].