Skip to content

CSS: view

.instui-view — View 프리미티브: 배경, 테두리, 반경, 그림자, 디스플레이, 위치, 오버플로우, 커서에 대한 키-값 수식어를 가진 중립 박스입니다. 이들 수식어는 전역적으로도(단독으로 또는 다른 컴포넌트에 체인해서) 모두 사용 가능하며, background/border/shadow/display/position/overflow/cursor 유틸리티를 참조하세요.

Source: view.css

사용법

css
@import "@pantoken/components/components.css";
@import "@pantoken/components/view.css";

예제들

html
<div class="instui-view -background-secondary -border-radius-medium -shadow-resting">
  A card-like surface.
</div>

수정자

수정자설명
.-background-alert알림(Alert) 표면 배경.
.-background-brand브랜드(Brand) 표면 배경.
.-background-danger위험(Danger) 표면 배경.
.-background-info정보(Info) 표면 배경.
.-background-primary프라이머리(Primary) 표면 배경.
.-background-primary-inverse프라이머리 반전(Inverse primary) 표면 배경.
.-background-secondary세컨더리(Secondary) 표면 배경.
.-background-success성공(Success) 표면 배경.
.-background-transparent투명 배경.
.-background-warning경고(Warning) 표면 배경.
.-border-color-brand브랜드(Brand) 테두리 색(스트로크).
.-border-color-danger에러(Error) 테두리 색(스트로크).
.-border-color-info정보(Info) 테두리 색(스트로크).
.-border-color-primary기본(Base) 테두리 색(스트로크).
.-border-color-success성공(Success) 테두리 색(스트로크).
.-border-color-warning경고(Warning) 테두리 색(스트로크).
.-border-radius-circle완전 원형(50%) 반경.
.-border-radius-large큰 코너 반경.
.-border-radius-medium중간 코너 반경.
.-border-radius-pill필(완전) 반경(둥근 태블릿형).
.-border-radius-small작은 코너 반경.
.-border-width-large기본 스트로크 색의 큰 실선 테두리.
.-border-width-medium기본 스트로크 색의 중간 실선 테두리.
.-border-width-small기본 스트로크 색의 작은 실선 테두리.
.-cursor-autocursor: auto.
.-cursor-defaultcursor: default.
.-cursor-grabcursor: grab.
.-cursor-movecursor: move.
.-cursor-not-allowedcursor: not-allowed.
.-cursor-pointercursor: pointer.
.-cursor-textcursor: text.
.-cursor-waitcursor: wait.
.-display-blockdisplay: block.
.-display-flexdisplay: flex.
.-display-inlinedisplay: inline.
.-display-inline-blockdisplay: inline-block.
.-display-inline-flexdisplay: inline-flex.
.-display-nonedisplay: none.
.-overflow-x-autooverflow-x: auto.
.-overflow-x-clipoverflow-x: clip.
.-overflow-x-hiddenoverflow-x: hidden.
.-overflow-x-scrolloverflow-x: scroll.
.-overflow-x-visibleoverflow-x: visible.
.-overflow-y-autooverflow-y: auto.
.-overflow-y-clipoverflow-y: clip.
.-overflow-y-hiddenoverflow-y: hidden.
.-overflow-y-scrolloverflow-y: scroll.
.-overflow-y-visibleoverflow-y: visible.
.-position-absoluteposition: absolute.
.-position-fixedposition: fixed.
.-position-relativeposition: relative.
.-position-staticposition: static.
.-position-stickyposition: sticky.
.-shadow-above위(Above) 엘리베이션 그림자.
.-shadow-resting기본(Resting) 엘리베이션 그림자.
.-shadow-topmost최상단(Topmost) 엘리베이션 그림자.

사용된 토큰

Token타입
--instui-border-radius-full<length>999rem
--instui-border-radius-lg<length>0.75rem
--instui-border-radius-md<length>0.5rem
--instui-border-radius-sm<length>0.25rem
--instui-border-width-lg<length>0.25rem
--instui-border-width-md<length>0.125rem
--instui-border-width-sm<length>0.0625rem
--instui-color-stroke-base<color>LightDarklight-dark(#8D959F, #6A7883)
--instui-color-stroke-brand<color>LightDarklight-dark(#1D354F, #EEF4FD)
--instui-color-stroke-error<color>#E62429
--instui-color-stroke-info<color>#2B7ABC
--instui-color-stroke-success<color>#03893D
--instui-color-stroke-warning<color>#CF4A00
--instui-component-view-background-alert<color>#2B7ABC
--instui-component-view-background-brand<color>LightDarklight-dark(#1D354F, #EEF4FD)
--instui-component-view-background-danger<color>#E62429
--instui-component-view-background-info<color>#2B7ABC
--instui-component-view-background-primary<color>LightDarklight-dark(#ffffff, #171B21)
--instui-component-view-background-primary-inverse<color>LightDarklight-dark(#334450, #F2F4F5)
--instui-component-view-background-secondary<color>LightDarklight-dark(#F2F4F5, #273540)
--instui-component-view-background-success<color>#03893D
--instui-component-view-background-warning<color>#CF4A00
--instui-elevation-abovenone | <shadow>#
--instui-elevation-restingnone | <shadow>#
--instui-elevation-topmostnone | <shadow>#