Skip to content

Commit 0f05cb3

Browse files
feat: use Tailwind preset values
1 parent fe8ddae commit 0f05cb3

File tree

2 files changed

+14
-11
lines changed

2 files changed

+14
-11
lines changed

assets/src/dashboard/parts/connect/index.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -166,20 +166,20 @@ const ConnectLayout = () => {
166166

167167
<div className={ connectContainerClasses }>
168168
<div className="optml-connect__content basis-8/12">
169-
<div className="inline-block bg-[#f0f6fc] text-[#646970] text-sm font-medium px-4 py-1.5 rounded-full mb-4">{ optimoleDashboardApp.strings.account_needed_trust_badge }</div>
169+
<div className="inline-block bg-light-blue text-slate-gray text-sm font-medium px-4 py-1.5 rounded-full mb-4">{ optimoleDashboardApp.strings.account_needed_trust_badge }</div>
170170

171-
<div className="text-gray-700 font-serif text-[26px] font-bold leading-7 m-0">{ optimoleDashboardApp.strings.account_needed_heading }</div>
171+
<div className="text-gray-700 font-serif text-26 font-bold leading-7 m-0">{ optimoleDashboardApp.strings.account_needed_heading }</div>
172172
<p
173-
className="text-[16px] font-normal text-[#646970]"
173+
className="text-base font-normal text-slate-gray"
174174
dangerouslySetInnerHTML={ { __html: optimoleDashboardApp.strings.account_needed_sub_heading } }
175175
/>
176176

177-
<div className="inline-flex items-center bg-[#f0f6fc] px-4 py-1.5 rounded-full mb-5 text-[14px] text-[#2c3338]">
178-
<span className="text-[#2271b1] mr-2">⏱️</span>{ optimoleDashboardApp.strings.account_needed_setup_time }
177+
<div className="inline-flex items-center bg-light-blue px-4 py-1.5 rounded-full mb-5 text-sm text-gray-800">
178+
<span className="mr-2">⏱️</span>{ optimoleDashboardApp.strings.account_needed_setup_time }
179179
</div>
180180

181181
<p
182-
className="text-[15px] text-[#3c434a] mb-5 leading-[1.5]"
182+
className="text-15 text-gray-700 mb-5 leading-normal"
183183
dangerouslySetInnerHTML={ { __html: optimoleDashboardApp.strings.account_needed_title } }
184184
/>
185185

@@ -253,14 +253,14 @@ const ConnectLayout = () => {
253253

254254
<Button
255255
variant="secondary"
256-
className="optml__button flex w-full justify-center rounded font-bold mt-4 min-h-40 mb-[15px]"
256+
className="optml__button flex w-full justify-center rounded font-bold mt-4 min-h-40 mb-4"
257257
onClick={ () => setMethod( 'key' ) }
258258
>
259259
{ optimoleDashboardApp.strings.api_exists }
260260
</Button>
261261

262-
<div class="flex items-center justify-center text-[13px] text-[#50575e] mb-[15px]">
263-
<span class="mr-1.5 text-[#00a32a]">🔒</span>{ optimoleDashboardApp.strings.secure_connection }
262+
<div class="flex items-center justify-center text-s text-gray-600 mb-4">
263+
<span class="mr-1.5">🔒</span>{ optimoleDashboardApp.strings.secure_connection }
264264
</div>
265265

266266
<p

tailwind.config.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,17 @@ module.exports = {
2525
'stale-yellow': '#FFF0C9',
2626
'mango-yellow': '#FBBF24',
2727
'disabled': '#6786F4',
28-
'light-gray': 'rgba(87, 123, 249, 0.36)'
28+
'light-gray': 'rgba(87, 123, 249, 0.36)',
29+
'slate-gray': '#646970'
2930
},
3031
fontFamily: {
3132
'serif': [ '-apple-system', 'BlinkMacSystemFont', 'sans-serif' ]
3233
},
3334
fontSize: {
3435
'2': '2rem',
35-
's': '13px'
36+
's': '13px',
37+
'15': '15px',
38+
'26': '26px',
3639
},
3740
maxWidth: {
3841
'64': '64px',

0 commit comments

Comments
 (0)