@document "Enterprise Design System" {
description: "Enterprise application design system";
version: "2.0.0";
@variables {
colors: {
light: {
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ColorTransformer } from './ColorTransformer'; | |
import { MatrixTransformer } from './MatrixTransformer'; | |
interface Point { | |
x: number; | |
y: number; | |
} | |
interface RGBA { | |
r: number; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"type": "FRAME", | |
"name": "Comprehensive Machine Health Sensors Dashboard", | |
"x": 0, | |
"y": 0, | |
"width": 1920, | |
"height": 1080, | |
"minWidth": 1600, | |
"maxWidth": 2560, | |
"minHeight": 900, |
accordion token
export const accordion = {
root: {
borderColor: { value: '{colors.gray.1000}' },
paddingInline: { value: '{spacing.2}' },
paddingBlock: { value: '{spacing.2}' },
borderRadius: { value: '{radii.sm}' },
},
Sapa ์ ๋ช๊ฐ์ง ๋ฌธ์ ์ (?)๋ค์ ๋ค์ ์๊ฐํด๋ณธ๋ค.
- multi root elements
Sapa ๋ ๊ธฐ๋ณธ์ ์ผ๋ก ์ปดํฌ๋ํธ ๊ธฐ๋ฐ์ผ๋ก ์ค๊ณ๊ฐ ๋์ด ์๊ธฐ ๋๋ฌธ์ ์ปดํฌ๋ํธ๋ ํ๋์ element ๋ฅผ root ๋ฅผ ๊ฐ์ง ์ ์๋ค. multi elements ๊ฐ ๋ ๋ ค๋ฉด fragment ๋ก ๊ฐ์ธ์ผ ํ๋๋ค.
- fragment
vnode ๋ฅผ ์ฒ์ ์์ฑํด์ dom ์ ๋ง๋ค๋๋ ๊ด์ฐฎ์ง๋ง update ํ ๋๊ฐ ๋ฌธ์ ๋ค.
CL - CSS Language
.A { // class A
// initialize
// private
--value: 10;
ํน์ ์ปดํฌ๋ํธ ๋๋ ํน์ ์ค์ ์ ๋ํ ์ฌ๋ฌ๊ฐ์ง ๊ฐ์ json ํํ๋ก ์๋ํฐ๋ฅผ ๋ฐ๋ก ๋ง๋ค์ด์ ์ฌ์ฉํ๋ ๊ฐ๋
itemType ์ ๋ฐ๋ผ ์์ ๋์ด์ผ ํ๋ ์์ฑ์ ๋ํด์ json ํํ๋ก ๋์ดํด์ฃผ๋ฉด ๋ฆฌํด์ json ํํ๋ก ๋์ผํ๊ฒ ํด์ค๋ค.
editor.registerInspector('polygon', (item) => {
return [
{
NewerOlder