Turbine@2.0.0 – Draft 1


https://unpkg.com/@fastwork/turbine/dist/turbine.css

yarn add @fastwork/turbine

npm version bundle size


Table of contents 🍭



Foundation / Tokens
Components

Breakpoint


Token Size
breakpoint-xs 768px
breakpoint-sm 1024px
breakpoint-md 1280px

Color


Primary
primary-900
primary-800
primary-700
primary-600
primary-500
primary-400
primary-300
primary-200
primary-100
Gray
gray-900
gray-800
gray-700
gray-600
gray-500
gray-400
gray-300
gray-200
gray-100
golden-poppy
dark-cerulean
bittersweet
Positive
positive-900
positive-800
positive-700
positive-600
positive-500
positive-400
positive-300
positive-200
positive-100
Negative
negative-900
negative-800
negative-700
negative-600
negative-500
negative-400
negative-300
negative-200
negative-100
Warning
warning-900
warning-800
warning-700
warning-600
warning-500
warning-400
warning-300
warning-200
warning-100
Info
info-900
info-800
info-700
info-600
info-500
info-400
info-300
info-200
info-100

Typography


Token Size
font-size-1200 48px
font-size-1100 40px
font-size-1000 36px
font-size-900 32px
font-size-800 28px
font-size-700 24px
font-size-600 20px
font-size-500 18px
font-size-400 16px
font-size-300 14px
font-size-200 12px
font-size-100 11px

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

Paragraph big

ปัจจุบัน Fastwork.co มี freelance คุณภาพที่คัดเฉพาะกว่า 7,500 คน มีหมวดหมู่งานทั้งหมดกว่า 70 หมวดหมู่ ผ่านการจ้างงานมาแล้วกว่า 150,000 งาน มีการบริการผู้ว่าจ้างและ freelance อย่างครบวงจร ตอบโจทย์เจ้าของกิจการ, ธุรกิจ SME, แม่ค้าออนไลน์ หรือแม้แต่บุคคลทั่วไป ที่ต้องการหา freelance ดี ๆ มีคุณภาพ มาช่วยให้งานสำเร็จตามต้องการ การันตีงานคุณภาพโดยทีมงานมืออาชีพ ที่ได้รับความไว้วางใจจากลูกค้ากว่า 300,000 ราย

Paragraph default

ปัจจุบัน Fastwork.co มี freelance คุณภาพที่คัดเฉพาะกว่า 7,500 คน มีหมวดหมู่งานทั้งหมดกว่า 70 หมวดหมู่ ผ่านการจ้างงานมาแล้วกว่า 150,000 งาน มีการบริการผู้ว่าจ้างและ freelance อย่างครบวงจร ตอบโจทย์เจ้าของกิจการ, ธุรกิจ SME, แม่ค้าออนไลน์ หรือแม้แต่บุคคลทั่วไป ที่ต้องการหา freelance ดี ๆ มีคุณภาพ มาช่วยให้งานสำเร็จตามต้องการ การันตีงานคุณภาพโดยทีมงานมืออาชีพ ที่ได้รับความไว้วางใจจากลูกค้ากว่า 300,000 ราย

Paragraph small

ปัจจุบัน Fastwork.co มี freelance คุณภาพที่คัดเฉพาะกว่า 7,500 คน มีหมวดหมู่งานทั้งหมดกว่า 70 หมวดหมู่ ผ่านการจ้างงานมาแล้วกว่า 150,000 งาน มีการบริการผู้ว่าจ้างและ freelance อย่างครบวงจร ตอบโจทย์เจ้าของกิจการ, ธุรกิจ SME, แม่ค้าออนไลน์ หรือแม้แต่บุคคลทั่วไป ที่ต้องการหา freelance ดี ๆ มีคุณภาพ มาช่วยให้งานสำเร็จตามต้องการ การันตีงานคุณภาพโดยทีมงานมืออาชีพ ที่ได้รับความไว้วางใจจากลูกค้ากว่า 300,000 ราย

<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>
<h6>Heading 6</h6>

<p class="paragraph-big">
	...
</p>
<p>
	...
</p>
<p class="paragraph-small">
	...
</p>

Avatar


avatar avatar avatar
<img src="..." class="tb-avatar">
<img src="..." class="tb-avatar -small">
<img src="..." class="tb-avatar -tiny">

Button


<button class="tb-button -small">Button</button>
<button class="tb-button">Button</button>
<button class="tb-button -big">Button</button>
<button class="tb-button -loading">Button</button>
<button class="tb-button -disabled" disabled>Button</button>
<button class="tb-button -loading -disabled" disabled>Button</button>

<button class="tb-button -secondary -small">Button</button>
<button class="tb-button -secondary">Button</button>
<button class="tb-button -secondary -big">Button</button>
<button class="tb-button -secondary -loading">Button</button>
<button class="tb-button -secondary -disabled" disabled>Button</button>
<button class="tb-button -secondary -loading -disabled" disabled>Button</button>

<button class="tb-button -positive">Button</button>
<button class="tb-button -negative">Button</button>
<button class="tb-button -secondary -positive">Button</button>
<button class="tb-button -secondary -negative">Button</button>

Card Product


Avatar
usernamelongggg
ออนไลน์เมื่อ 2 ชั่วโมงที่แล้ว
 1,690
Image
บริการออกแบบโลโก้ที่แฝงด้วยความหมาย บริการออกแบบโลโก้ที่แฝงด้วยความหมาย
4.9(39)
Pro
เริ่มต้น
Rp1,000,000
<div class="tb-card-product">
	<div class="slot-avatar">
		<img src="..." alt="Avatar" class="tb-avatar -small">
	</div>
	<div class="slot-seller-name">usernamelonggg</div>
	<div class="slot-online">ออนไลน์เมื่อ 2 ชั่วโมงที่แล้ว</div>
	<div class="slot-favorite"><i class="fal fa-heart"></i> 1,690</div>
	<div class="slot-image">
		<img src="..." alt="Image">
	</div>
	<div class="slot-title">บริการออกแบบโลโก้ที่แฝงด้วยความหมาย</div>
	<div class="slot-rating">
		<!-- Example of rating slot -->
		<small class="_dp-g _gatf-cl">
			<i class="fas fa-star _cl-golden-poppy"></i>
			<i class="fas fa-star _cl-golden-poppy"></i>
			<i class="fas fa-star _cl-golden-poppy"></i>
			<i class="fas fa-star _cl-golden-poppy"></i>
			<i class="fas fa-star _cl-gray-300"></i>
		</small>
		<div class="_cl-mute _mgt-4px">
			4.9(39)
		</div>
	</div>
	<div class="slot-label">
		<div class="tb-label">
			Pro
		</div>
	</div>
	<div class="slot-price">
		<!-- Example of price slot -->
		<div class="_cl-mute _fs-200">เริ่มต้น</div>
		<div class="_cl-primary-500">Rp12,000,000</div>
	</div>
</div>

Form


Text input


คำอธิบาย 1234
<div class="tb-field">
	<label for="input-normal">Username</label>
	<div class="tb-input">
		<input id="input-normal" placeholder="Enter text">
	</div>
	<small class="_cl-mute">คำอธิบาย 1234</small>
</div>

<div class="tb-field -disabled">
	<div class="tb-input">
		<input id="input-normal" placeholder="Disabled" disabled>
	</div>
</div>

<div class="tb-field -negative">
	<div class="tb-input">
		<input id="input-normal" placeholder="Negative" value="Error">
	</div>
</div>

<div class="tb-field -positive">
	<div class="tb-input">
		<input id="input-normal" placeholder="Positive" value="Look good">
	</div>
</div>

<div class="tb-field -big">
	<div class="tb-input">
		<input id="input-normal" placeholder="Big!!">
	</div>
</div>

<div class="tb-field -small">
	<div class="tb-input">
		<input id="input-normal" placeholder="Small">
	</div>
</div>

Textarea


<div class="tb-field">
	<label for="textarea1">Your detail</label>
	<div class="tb-textarea">
		<textarea id="textarea1" rows="4" placeholder="Enter detail..."></textarea>
	</div>
</div>
<div class="tb-field -disabled">
	<div class="tb-textarea">
		<textarea id="textarea1" rows="4" placeholder="Disabled textarea..." disabled></textarea>
	</div>
</div>

Radio


<div class="tb-field">
	<div class="tb-radio">
		<input type="radio" name="rg1" id="r1">
		<label for="r1">Radio 1</label>
	</div>
	<div class="tb-radio">
		<input type="radio" name="rg1" id="r2">
		<label for="r2">Radio 2</label>
	</div>
	<div class="tb-radio">
		<input type="radio" name="rg1" id="r3">
		<label for="r3">Radio 3</label>
	</div>
</div>

<div class="tb-field -disabled">
	<div class="tb-radio">
		<input type="radio" name="rg1" id="r4" disabled>
		<label for="r4">Radio 1</label>
	</div>
	<div class="tb-radio">
		<input type="radio" name="rg1" id="r5" disabled>
		<label for="r5">Radio 2</label>
	</div>
</div>

Checkbox


<div class="tb-field">
	<div class="tb-checkbox">
		<input type="checkbox" name="rg1" id="c1">
		<label for="c1">Checkbox 1</label>
	</div>
	<div class="tb-checkbox">
		<input type="checkbox" name="rg1" id="c2">
		<label for="c2">Checkbox 2</label>
	</div>
	<div class="tb-checkbox">
		<input type="checkbox" name="rg1" id="c3">
		<label for="c3">Checkbox 3</label>
	</div>
</div>

<div class="tb-field -disabled">
	<div class="tb-checkbox">
		<input type="checkbox" name="rg1" id="c4" disabled>
		<label for="c4">Checkbox 1</label>
	</div>
	<div class="tb-checkbox">
		<input type="checkbox" name="rg1" id="c5" disabled>
		<label for="c5">Checkbox 2</label>
	</div>
</div>

Label


Dark cerulean Bittersweet Positive Negative Goldenpoppy
<span class="tb-label -dark-cerulean">Dark cerulean</span>
<span class="tb-label -bittersweet">Bittersweet</span>
<span class="tb-label -positive">Positive</span>
<span class="tb-label -negative">Negative</span>
<span class="tb-label -golden-poppy">Goldenpoppy</span>

Message


Hello. this is message content
ERROR – Something gone wrong
Success – You did good!
Warning – Don't touch it
Info – This is a good information
<div class="tb-message">
	Hello. this is message content
</div>
<div class="tb-message -negative">
	<strong>ERROR</strong> – Something gone wrong
</div>
<div class="tb-message -positive">
	<strong>Success</strong> – You did good!
</div>
<div class="tb-message -warning">
	<strong>Warning</strong> – Don't touch it
</div>
<div class="tb-message -info">
	<strong>Info</strong> – This is a good information
</div>