border-radius: var(--radius-3xl);/* 1.5rem (24px) */ rounded-none border-radius: 0; rounded-full border-radius: calc(infinity * 1px); rounded-(<custom-property>) border-radius: var(<custom-property>); Show more Examples Basic example ...
Note:Thesrcfor Donut 1 can be seen here:components/donut-1.js. <svg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg' style={{ borderRadius: '100%' }}> <clipPath id='hole'> <path d='M 50 0 a 50 50 0 0 1 0 100 50 50 0 0 1 0 -100 v 18 a 2 2 0 0...
创建自定义插件 // plugins/button.jsconstplugin=require('tailwindcss/plugin')module.exports=plugin(function({addComponents,theme}){constbuttons={'.btn':{padding:`${theme('spacing.2')}${theme('spacing.4')}`,borderRadius:theme('borderRadius.lg'),fontWeight:theme('fontWeight.bold'),'&:focus'...
exports = plugin(function({ addComponents, theme }) { const buttons = { '.btn': { display: 'inline-flex', alignItems: 'center', justifyContent: 'center', padding: `${theme('spacing.2')} ${theme('spacing.4')}`, borderRadius: theme('borderRadius.lg'), fontWeight: theme('font...
rounded-md border-radius: 0.375rem; /* 6px */ rounded-lg border-radius: 0.5rem; /* 8px */ rounded-xl border-radius: 0.75rem; /* 12px */ rounded-2xl border-radius: 1rem; /* 16px */ rounded-3xl border-radius: 1.5rem; /* 24px */ rounded-full border-radius: 9999px; rounded-...
.rounded-t-noneborder-top-left-radius: 0; border-top-right-radius: 0; .rounded-r-noneborder-top-right-radius: 0; border-bottom-right-radius: 0; .rounded-b-noneborder-bottom-right-radius: 0; border-bottom-left-radius: 0; .rounded-l-noneborder-top-left-radius: 0; border-bottom-left-...
I am new to tailwind framework with react and need assistance in this issue. I am trying to achieve the border-radius in tailwind of the table like in the image shown below I am trying to achieve this by using the following code
npm install tailwindcss-border-gradient-radius yarn add tailwindcss-border-gradient-radius Usage Simple {theme: extend:{linearBorderGradients:({theme})=>({colors:{'light-blue':[colors.indigo[200],colors.lime[300]],},background:theme('colors'),}),plugins:[require('tailwindcss-border-gradient-...
rounded-2xlborder-radius: 1rem; rounded-3xlborder-radius: 1.5rem; rounded-fullborder-radius: 9999px; rounded-t-noneborder-top-left-radius: 0px; border-top-right-radius: 0px; rounded-r-noneborder-top-right-radius: 0px; border-bottom-right-radius: 0px; ...
border-radius: 6px; padding: 20px; box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.25); } .rightcol { grid-area: 2 / 3 / 2 / 4; align-self: stretch; padding: 20px 0; padding-left: 10px; padding-right: 15px; border-left: 0px solid rgb(190, 190, 190); } #json { padding...