JonHMChan/descartes
소개
Descartes | Write CSS in JavaScript
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalDescartes
by Jon Chan @jonhmchan
This is an experimental library for writing CSS in JavaScript. The current version is a beta and highly unstable, with changes happening on a daily basis. This library is not recommended for production use. It is actively being developed with your help.
Quickstart
Download
descartes.jsfrom thedistfolderSet up Descartes in a webpage by inserting it in your
<head>tag, like so:<!doctype html> <html> <head> <script type="text/javascript" src="/path/to/descartes.js"></script> </head> <body> <h1>I compute, therefore I am.</h1> <script type="text/javascript" src="/path/to/styles.js"></script> </body> </html>Create a
styles.jswhere you will write your styles. Try the following:Descartes.add({ "body": { "color": "#555", "font-family": "Arial", "h1": { "font-family": "Helvetica", "font-size": function() { return 16 + Math.round(Math.random() * 42); } } } })Save and open up your HTML file in a browser. Clicking anywhere on the window should randomize the size of your heading.
Overview
For a full overview of features, take a look at the presentation I typically give at https://descartes.io/slides (just your right and left arrow keys to go through the slides).
관련 프로젝트 살펴보기
불러오는 중…