본문으로 바로가기 본문 바로가기
WIKI 기술 지식 베이스

아우라

원문 보기 위키 갱신

아우라 (Aura)

Aura는 어떤 컴포넌트든 감쌀 수 있는 테두리 광(light) 효과예요. 가장 중요한 버튼이나 카드, 강조하고 싶은 div에 재미있고 눈에 띄는 효과를 더할 때 좋아요.

출처: 문서

본문

클래스 이름 타입
aura Component — 요소 주위에 광 효과 aura를 더하는 컨테이너. 기본은 회전하는 테두리
aura-dual Style — 광 효과 2개 사용
aura-rainbow Style — 무지개 색 광 효과 사용
aura-holo Style — 홀로그램 색 광 효과 사용
aura-gold Style — 금색 광 효과 사용
aura-silver Style — 은색 광 효과 사용
aura-glow Style — 회전 테두리 대신 발광 효과 사용
aura-xs Size — 초소형
aura-sm Size — 소형
aura-md Size — 중형(기본)
aura-lg Size — 대형
aura-xl Size — 초대형

Aura — 카드 주위에

<div class="$$aura">
  <div class="$$card bg-base-100">
    <div class="$$card-body">
      <p>This card has aura</p>
    </div>
  </div>
</div>

버튼 주위에 Aura

<div class="$$aura">
  <button class="$$btn">button with aura</button>
</div>

Aura dual

<div class="$$aura $$aura-dual">
  <div class="$$card bg-base-100">
    <div class="$$card-body">
      <p>This card has dual aura</p>
    </div>
  </div>
</div>

Aura rainbow

<div class="$$aura $$aura-rainbow">
  <div class="$$card bg-base-100">
    <div class="$$card-body">
      <p>This card has rainbow aura</p>
    </div>
  </div>
</div>

Aura holo

<div class="$$aura $$aura-holo">
  <div class="$$card bg-base-100">
    <div class="$$card-body">
      <p>This card has holo aura</p>
    </div>
  </div>
</div>

Aura glow

<div class="$$aura $$aura-glow">
  <div class="$$card bg-base-100">
    <div class="$$card-body">
      <p>This card has glow aura</p>
    </div>
  </div>
</div>

Aura gold

<div class="$$aura $$aura-gold">
  <div class="$$card bg-base-100">
    <div class="$$card-body">
      <p>This card has gold aura</p>
    </div>
  </div>
</div>

Aura silver

<div class="$$aura $$aura-silver">
  <div class="$$card bg-base-100">
    <div class="$$card-body">
      <p>This card has silver aura</p>
    </div>
  </div>
</div>

커스텀 색이 있는 Aura

text-* 클래스로 aura 색을 바꿀 수 있어요.

<div class="$$aura text-orange-600">
    <div class="$$card bg-base-100 text-base-content">
    <div class="$$card-body">
      <p>This card has custom color aura</p>
    </div>
  </div>
</div>

커스텀 색과 커스텀 배경색이 있는 Aura

<div class="$$aura text-orange-600 bg-yellow-200">
    <div class="$$card bg-base-100 text-base-content">
    <div class="$$card-body">
      <p>This card has custom color and background aura</p>
    </div>
  </div>
</div>

가격 카드 주위에 Aura rainbow

<div class="$$aura $$aura-rainbow">
  <div class="$$card w-96 bg-base-100 shadow-sm">
    <div class="$$card-body">
      <span class="$$badge $$badge-xs $$badge-warning">Most Popular</span>
      <div class="flex justify-between">
        <h2 class="text-3xl font-bold">Premium</h2>
        <span class="text-xl">$29/mo</span>
      </div>
      <ul class="mt-6 flex flex-col gap-2 text-xs">
        <li>
          <svg xmlns="http://www.w3.org/2000/svg" class="size-4 me-2 inline-block text-success" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" /></svg>
          <span>High-resolution image generation</span>
        </li>
        <li>
          <svg xmlns="http://www.w3.org/2000/svg" class="size-4 me-2 inline-block text-success" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" /></svg>
          <span>Customizable style templates</span>
        </li>
        <li>
          <svg xmlns="http://www.w3.org/2000/svg" class="size-4 me-2 inline-block text-success" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" /></svg>
          <span>Batch processing capabilities</span>
        </li>
        <li>
          <svg xmlns="http://www.w3.org/2000/svg" class="size-4 me-2 inline-block text-success" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" /></svg>
          <span>AI-driven image enhancements</span>
        </li>
        <li class="opacity-50">
          <svg xmlns="http://www.w3.org/2000/svg" class="size-4 me-2 inline-block text-base-content/50" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" /></svg>
          <span class="line-through">Seamless cloud integration</span>
        </li>
        <li class="opacity-50">
          <svg xmlns="http://www.w3.org/2000/svg" class="size-4 me-2 inline-block text-base-content/50" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" /></svg>
          <span class="line-through">Real-time collaboration tools</span>
        </li>
      </ul>
      <div class="mt-6">
        <button class="$$btn $$btn-primary $$btn-block">Subscribe</button>
      </div>
    </div>
  </div>
</div>

Aura 크기

<div class="$$aura $$aura-xs">
  <button class="$$btn">XS</button>
</div>
<div class="$$aura $$aura-sm">
  <button class="$$btn">SM</button>
</div>
<div class="$$aura">
  <button class="$$btn">MD</button>
</div>
<div class="$$aura $$aura-lg">
  <button class="$$btn">LG</button>
</div>
<div class="$$aura $$aura-xl">
  <button class="$$btn">XL</button>
</div>

커스텀 애니메이션 시간이 있는 Aura

duration-* 클래스로 회전 애니메이션 속도를 바꿀 수 있어요.

<div class="$$aura $$aura-rainbow duration-2000">
  <div class="$$card bg-base-100">
    <div class="$$card-body">
      <p>2000ms duration aura</p>
    </div>
  </div>
</div>

더 알아보기 (Learn more)

Aura는 단독 스타일뿐 아니라 rainbow, gold, holo 같은 스타일 조합으로 분위기를 크게 바꿀 수 있어요. text-*로 광 색을, duration-*로 회전 속도를 조절하면 버튼이나 가격 카드 같은 중요한 요소를 강조하기에 딱이에요.