Best interests of the child
Family Code §3011 lists what the court considers, including the child's health, safety and welfare and any history of abuse. §3020 sets the state's policy: the child's health, safety and welfare come first, along with frequent and continuing contact with both parents when that is safe.
Mediation is required when custody is contested
Under §3170(a), if custody or visitation is contested, the court sets those issues for mediation. Each county runs its own program through the court, so ask your county's family court how it works there.
The custody order: FL-341
California has no single mandatory parenting plan form or statewide default schedule. Custody and visitation orders use the Judicial Council form FL-341, Child Custody and Visitation (Parenting Time) Order Attachment. The California Courts self-help guide explains the process (also in Spanish).
Child support
California uses a statewide formula based on both parents' incomes and each parent's share of time with the children (§4055). For an estimate, use the official California Child Support Services guideline calculator.
Keeping the plan on track
Once you have an order, Family Bridge keeps the parenting time schedule, handoffs, messages and children's expenses in one shared place for both parents, on iPhone, Android and the web. The free plan includes unlimited text messaging. See the custody calendar and the free parenting plan template.
General information, not legal advice. Laws and forms change: check the official sources linked here or talk to a family law attorney or your court's self-help center.